     
     override func viewDidLoad() {
         super.viewDidLoad()
-        
-        
+
         initialCenterX = imageView.center.x
         initialCenterY = imageView.center.y
         

                }
                
                
                UIView.animate(withDuration: 0.6,
                               delay: 0,
                               usingSpringWithDamping: 0.8,
                               initialSpringVelocity: 0,

    
    // generic function that loads an image for the requested asset
    // add the requesting asset to load and provide an handler to use the image

    func loadImage(asset: PHAsset, resultHandler: @escaping (Data?, String?, UIImageOrientation, [AnyHashable : Any]?) -> Void){
        
        //let imageManager = PHCachingImageManager()
        let imageManager = PHImageManager()

        
        
        // better photo fetch options
        let options: PHImageRequestOptions = PHImageRequestOptions()
