add cropping functionality