A script that creates segmented jpg images

The segmented images are saved in working directory in the folders
'segmentedNoBorders' and 'segmentedWithBorders'