image cropping when it should not