Texture based image segmentation tool