             scrollView.contentOffset.x = scrollView.contentSize.width - scrollView.bounds.size.width
         }
     }
+    
+    private func reset() {
+        scrollView.transform = CGAffineTransformIdentity
+        scrollView.minimumZoomScale = 1
+        scrollView.zoomScale = 1
+    }
 }
 
 private class PhotoScrollView: UIScrollView {

        originalPoint = convertPoint(scrollView.center, toView: self)
        
        updateMasks()
        
        setImageRotation(previousAngle)
    }
    
    private func updateMasks(animated animated: Bool = false) {

        
        if !manualZoomed || shouldScale {
            
            scrollView.minimumZoomScale = scrollView.zoomScaleToBound()
            scrollView.zoomScale = scrollView.minimumZoomScale
            
            manualZoomed = false
        }
