Updated the pinch zoom functionality