save segmentation images as binary images