works
png
tidy up, save segmented image
add loop