modified recalculatescrollmax() and split renders so panning is exact.
(i.e. in the side by side render you move the mouse one pixel left the image only pans one pixel)