Making pan and zoom image gallery work

Author: Ashwin
removing commented code which broke the functionality of changing image for pan zoom

Author: Ashwin