added arg for showing images to foam_segmenter