title: Saving remote image with PhantomJS
body: <p>I'm using PhantomJS 2.1.1 on Ubuntu <em>without</em> Node or Casper. </p>
  
  <pre><code>fs.write('images/products/image.jpg', 'http://example.com/folder/someimage.jpg', 'w');
  </code></pre>
  
  <p>.. although this creates 1xx byte jpeg files that aren't really images. Is there a way to download any type of (JPEG, JPG, PNG) file with PhantomJS?</p>