title: Swift 4.2 imagePickerController issue
body: <p>Trying to pass chat client from swift 4 to swift 4.2 and with picker i found trouble. </p>
  
  <blockquote>
    <p>UIImagePickerControllerEditedImage Cannot subscript a value of type
    '[String : Any]' with an index of type
    'UIImagePickerController.InfoKey'</p>
  </blockquote>
  
  <pre><code>func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
  
      if let pickedImage = info[UIImagePickerControllerEditedImage] as? UIImage {
          self.userProfileImage.contentMode = .scaleAspectFit
          self.userProfileImage.image = pickedImage
      }
  
      picker.dismiss(animated: true, completion: nil)
  }
  </code></pre>