added ability to view image and zoom and pan