title: Cannot infer contextual base in reference to member 'originalImage'
body: <p>im trying to use imagePickerController and im getting this weird error &quot;Cannot infer contextual base in reference to member 'originalImage'&quot;</p>
  <p>I've used this code before but im not sure why im getting this error this time, or how to fix it.</p>
  <pre><code>  func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) 
      {
          guard let pickImage = info[.originalImage] as? UIImage else {
              fatalError(&quot;Expected a dictionary containing an image, but was provided the following: \(info)&quot;)
          }
          
          photoImageView.image = pickImage
          dismiss(animated: true, completion: nil)
      }
  </code></pre>
  <p>please help!</p>
  <p>heres the full code:</p>
  <pre><code>class AddCardViewController: UIViewController, UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
      
      @IBOutlet weak var saveButton: UIBarButtonItem!
      @IBOutlet weak var questionField: UITextField!
      @IBOutlet weak var answerField: UITextField!
      @IBOutlet weak var photoImageView: UIImageView!
      
      private let imagePickerController = UIImagePickerController()
      let defaultImage = UIImage(named: &quot;q&quot;)
      
      private var newCard: Card?
      
      private func updateSaveButtonState() {
          let questionText = questionField.text ?? &quot;&quot;
          let answerText = answerField.text ?? &quot;&quot;
          
          saveButton.isEnabled = !questionText.isEmpty &amp;&amp; !answerText.isEmpty
      }
      
      public func getCard() -&gt; Card? {
          return newCard
      }
      
      override func viewDidLoad() {
          super.viewDidLoad()
          
          photoImageView.image = defaultImage
          questionField.delegate = self
          answerField.delegate = self
      }
      
      @IBAction func pickImage(_ sender: Any) {
          imagePickerController.sourceType = .photoLibrary
          
          imagePickerController.delegate = self
          present(imagePickerController, animated: true, completion: nil)
      }
      
      func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
          dismiss(animated: true, completion: nil)
      }
      
      private func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
          guard let pickImage:UIImage = info [.originalImage] as? UIImage else {
              fatalError(&quot;expected a dictionary containing an image, but was provided the following: \(info)&quot;)
          }
          
          photoImageView.image = pickImage
          dismiss(animated: true, completion: nil)
      }
      
      func alertMessage(_ message: String) {
          let alertController = UIAlertController(title: &quot;Add a card&quot;, message: message, preferredStyle: UIAlertController.Style.alert)
          alertController.addAction(UIAlertAction(title: &quot;okie dokie&quot;, style: UIAlertAction.Style.default, handler: nil))
          self.present(alertController, animated: true, completion: nil)
      }
  </code></pre>