Added zoom and pan functionality to rq2