fixed an image cropping error