title: Swift / iOS / Kanna / parse image from html using xpath
body: <p>I'm using the <a href="https://github.com/tid-kijyun/Kanna" rel="nofollow">Kanna</a> framework to use xpath parsing.
  I'm successfully getting text from my desired url using the following code: </p>
  
  <pre><code>    @IBAction func getSource(sender: AnyObject) {
  
      if let doc = Kanna.HTML(url: (NSURL(string: "http://qwertz.com")!), encoding: NSUTF8StringEncoding) {
  
  
          // Search for nodes by XPath
          for link in doc.xpath(".//*[@id='bday_form']/div[1]/img[1]") {
              print(link.text)
              print(link["href"])
  
              self.testLabel.text = link.text
          }
      }
  
      print("test22")
  
  }
  </code></pre>
  
  <p>How can I parse images and put them into my imageView Outlet <code>@IBOutlet weak var imageViewOutlet: UIImageView!</code></p>
  
  <p>Help is very appreciated.</p>
  
  <pre><code>self.imageViewOutlet.image = link
  </code></pre>
  
  <p>throws: Cannot assign value of type 'XMLElement' to type 'UIImage?'</p>