fixed bug where crop would fail on the edge of a rotated image