added image cropping