Segmentation part with exportation of all images