Improve the image resizing&cropping.