added ability to specify label colors
implemented texture segmentation