panning and zooming - needs bugfix for zooming out