Fix visual artifacts when panning zoomed in image on HiDPI
The size of the viewport rectangle needs to be in the device-independent pixels; otherwise there will be visual artifacts when panning a zoomed in translucent image.
Edited by Vlad Zahorodnii