changes for image segmentation