add image cropping support