Fixed division by zero bug for images upscaled by more than 200%