Finds connected components in an image and colors each region with a different color