Trim image to fit.