Finish implementing panning.
WIP: zoom/pan
Working pan/zoom.
Improve performance of panning/zooming.