Swift: Display Image from URL
<p>In Swift 3, I am trying to capture an image from the internet, and have these lines of code:</p>

<pre><code>var catPictureURL = NSURL(fileURLWithPath: "http://i.imgur.com/w5rkSIj.jpg")
var catPictureData = NSData(contentsOf: catPictureURL as URL) // nil
var catPicture = UIImage(data: catPictureData as! Data)
</code></pre>

<p>What am I doing wrong here?</p>