Ruby project for image segmentation