Added a naive iteration that alternates between segmenting the image and using the segmentation as training data.