         photo = nil
         if captionView != nil {
             captionView.removeFromSuperview()
-            captionView = nil 
+            captionView = nil
         }
     }
     

            // image
            imageView.image = image
            imageView.contentMode = photo.contentMode

            var imageViewFrame: CGRect = .zero
            imageViewFrame.origin = .zero
            // long photo

        // maximum zoom scale to 0.5
        // After changing this value, we still never use more
        /*
         maxScale = maxScale / scale
         if maxScale < minScale {
         maxScale = minScale * 2
         }
         */
        
        // reset position
        imageView.frame.origin = CGPoint.zero
