Implemented the pinch box zoom functionality