Fix cropping for small images