             print("no image to crop")
             delegate?.fusumaImageSelected(view.image, source: mode)
             
-            self.dismiss(animated: true) {
-            
+            self.doDismiss {
+
                 self.delegate?.fusumaDismissedWithImage(view.image, source: self.mode)
             }
         }

    @IBAction func doneButtonPressed(_ sender: UIButton) {
        
        allowMultipleSelection ? fusumaDidFinishInMultipleMode() : fusumaDidFinishInSingleMode()
    }
    
    private func fusumaDidFinishInSingleMode() {

                
                self.delegate?.fusumaImageSelected(image, source: self.mode)
                
                self.doDismiss {

                    self.delegate?.fusumaDismissedWithImage(image, source: self.mode)
                }
                
                let metaData = ImageMetadata(
                    mediaType: self.albumView.phAsset.mediaType,
