error in the image cropping - adjusted