Create a boundary around the image for panning so that panning stops beyond the image boundary. 
Create a boundary around the image for panning so that panning stops beyond the image boundary.
