Topology-Preserving Deep Image Segmentation