title: How to save JPG/PNG files and have it retain correct Content-Type
body: <p>I am saving a picture file from a server a bucket in S3 in the following way:</p>
  
  <pre><code>request = urllib2.Request('http://link.to/file.jpg')
  response = urllib2.urlopen(request)
  jpg_data = response.read()
  
  storage = S3BotoStorage(bucket='icanhazbukkit')
  my_file = storage.open(path_to_new_file, 'w')
  my_file.write(jpg_data)
  my_file.close()
  </code></pre>
  
  <p>The file gets written, but somewhere along the way the MIME context gets lost, and the saved image will return <code>Content-Type: binary/octet-stream</code> and browser will try to download instead of displaying when its URL is hit.</p>
  
  <p>Any way I can mitigate this?</p>