title: python imaging library save function
body: <p>I have just done some image processing using the python image library (PIL) and I can't get the save function to work. the whole code works fine but it just wont save the resulting image. The code is below:</p>
  
  <pre><code>im=Image.new("rgb",(200,10),"#ddd")
  draw=Image.draw.draw(im)
  draw.text((10,10),"run away",fill="red")
  im.save("g.jpeg")
  </code></pre>
  
  <p>Saving gives an error as unknown extension and even removing the dot doesn't help.</p>