fix for image cropping issue