                 
                 if asset == self.albumView.selectedAssets.last {
                     
-                    self.dismiss(animated: true) {
-                     
-                        if let _ = self.delegate?.fusumaMultipleImageSelected {
-                        
-                            self.delegate?.fusumaMultipleImageSelected(images, source: self.mode)
-                        }
+                    self.doDismiss {
+
+                        self.delegate?.fusumaMultipleImageSelected(images, source: self.mode)
                     }
                 }
             }

public var fusumaCameraTitle     = "Photo"
public var fusumaVideoTitle      = "Video"
public var fusumaTitleFont       = UIFont(name: "AvenirNext-DemiBold", size: 15)

@objc public enum FusumaMode: Int {
    

    func videoFinished(withFileURL fileURL: URL) {
        
        delegate?.fusumaVideoCompleted(withFileURL: fileURL)
        self.doDismiss(completion: nil)
    }
    
}
