Added support for forcing crop on images smaller on one side than one of the crop dimensions.