add support for image cropping