Fix negative coordinates when doing a resize crop.

Fixed a bug that was causing negative box coordinates to be generated
when calculating the optimal crop for an image.