Automatic Segmentation of Images