Added basic zoom and pan functionality