BUG Fixed divide by zero with SetRatioSize on missing image file

Fixes issue #2047