function getImageFromRemoteURL(urlString) {
  // encode spaces
  urlString = urlString.replace(/\s/g, '%20')

  // get data from url
  let url = NSURL.URLWithString(urlString)
  let data = url.resourceDataUsingCache(false)
  if (!data) return

  // create image from data
  let image = NSImage.alloc().initWithData(data)
  return image
}
Downloads the image from the specified remote URL and creates an NSImage instance.

@param {String} urlString
@returns {NSImage}