Added panning and improved zooming.