Fixes `resizemin` resize mode not giving expected results in some scenarios (https://github.com/elboletaire/Watimage/issues/4)