A simple example of how to correctly resize an image to fit within a crop rect.