     }
     
     open func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
-        dismissPicker(picker)
+        dismiss(picker)
         
         if let action = currentAction {
             switch action {

            observer.on(.completed)
        }
        
        dismissPicker(picker)
    }

    fileprivate func presentPicker(_ picker: UIImagePickerController) {
        DispatchQueue.main.async { [weak self] in
            self?.delegate?.present(picker: picker)
        }
    }
    
    fileprivate func dismissPicker(_ picker: UIImagePickerController) {
        DispatchQueue.main.async { [weak self] in
            self?.delegate?.dismiss(picker: picker)
        }

                picker.cameraDevice = device
            }
            
            self.present(picker)
            
            return Disposables.create()
        }
