corrected rounding glitches

for explanation see here: https://processwire.com/talk/topic/6284-rounding-issues-in-imagesizer/