             
             // restore the original location of the main image
 
-            if(getAsset().location != nil){
+            if(getAsset().location != nil && mainImageFrameBackup != nil ){
                 // NILPOINTER BY MAINFRAME
                 UIView.animate(withDuration: 0.5, animations: { () -> Void in
-                    self.imageView.frame = self.mainImageFrameBackup!
+                    self.imageView.frame = self.mainImageFrameBackup!  // ERROR: MIGHT BE NIL!!!
                     self.imageView.layer.shadowOffset = CGSize(width:15, height:15);
                     self.imageView.layer.shadowRadius = 0;
                     self.imageView.layer.shadowOpacity = 0.0;

    }
    
    
    
    func longPress(_ recognizer: UILongPressGestureRecognizer){
    
        
        if(recognizer.state == .began){
            print("LONG PRESS PLAY")
            toggleHUDState()
            
            

        
    }

    
    override func viewDidAppear(_ animated: Bool) {
        
        
