Added ability to pan the image