Convert any image into segments - rectangular areas within the image with averaged colors