added a pan() method to the panzoom model