title: UIImage from path or filename in Swift 3
body: <p>i have a bunch of images in my App's Documents Directory. i want to load one of them in an UIImage that i have in my view. this is what i do:</p>
  
  <pre><code>myImage.image = UIImage(named: "image.jpg") // the file exist but this returns nil
  </code></pre>
  
  <p>I also tried to init the image using:</p>
  
  <pre><code>myImage.image = UIImage(contentsOfFile: imagePath) //this also doesn't work but the path i got starts (at least in the sim) with file://
  </code></pre>
  
  <p>Anyone can suggest something? I'm kinda a noob in iOS programming.</p>
  
  <p>Thanks</p>
  
  <p>EDIT:
  imagePath comes from:</p>
  
  <pre><code>func getImgPath(name: String) -&gt; String
  {
      let documentsDirectory = self.getDocumentsDirectory()
      let fullpath = documentsDirectory.appendingPathComponent(name)
      return fullpath.absoluteString
  
  }
  </code></pre>