buggy image cropping