fix zoom by zero padding (problem with image sizes not multiple of the zoom factor)