Sequential segmentation fixes. Depth-first search implementation. Set color to each connected region of pixels.