             let newZoomScale = ((maximumZoomScale + minimumZoomScale) / 2.0)
             let xsize = bounds.size.width / newZoomScale
             let ysize = bounds.size.height / newZoomScale
-            zoomToRect(CGRectMake(touchPoint.x - xsize / 2.0, touchPoint.y - ysize / 2.0, xsize, ysize), animated: true)
+            zoom(to: CGRectMake(touchPoint.x - xsize / 2.0, touchPoint.y - ysize / 2.0, xsize, ysize), animated: true)
         }
         
         // Delay controls


    private func handleSingleTap(touchPoint: CGPoint) {
        dispatch_after(
            dispatch_time(DISPATCH_TIME_NOW, Int64(0.2 * Double(NSEC_PER_SEC))),
            dispatch_get_main_queue())
        {
            self.photoBrowser.toggleControls()
        }

        
        // Vertically
        if frameToCenter.size.height < boundsSize.height {
            frameToCenter.origin.y = floorcgf(x: (boundsSize.height - frameToCenter.size.height) / 2.0)
        }
        else {
            frameToCenter.origin.y = 0.0
        }
        
        // Center
        if !photoImageView.frame.equalTo(frameToCenter) {
            photoImageView.frame = frameToCenter
        }
    }
