There is an Interactive Image Panning tutorial on Kirupa.
I was curious if anyone knows how to get this to pan the X and Y rather than just along the X axis.
In other words, any mouse direction you move would move the image, the same way or the opposite way.