title: How to assign a picture to the UIImageView (Swift 3)
body: <p>I'm trying to add an image from the gallery to the new ViewController, but get an error</p>
  
  <blockquote>
    <p>Creating an image format with an unknown type is an error fatal error: unexpectedly found nil while unwrapping an Optional value</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
          if let im = info[UIImagePickerControllerOriginalImage] as? UIImage {
              let vc = self.storyboard?.instantiateViewController(withIdentifier: "editImage") as! EditImageViewController
              vc.imageView.image = im
              self.present(vc, animated: true, completion: nil)
          } else {
              print("Something went wrong")
      }
      imagePicker.dismiss(animated: true, completion: nil)
  }
  </code></pre>
  
  <p>What's my mistake?</p>