Protected against 0 width/height subimages in Segmentation