Guard against bad type conversion.
There was an image where the orig_w and orig_h were strings,
which did odd things where 0 + "400" became "0400".
Somehow this was resulting in negative crop dimensions.