title: cannot save image with PIL
body: <p>I can make an image and save it to a file this way:</p>
  
  <pre><code>Img1 = PIL.Image.new('RGB', (512,512))
  display(newImg1)
  Img1.save("img1.jpg","JPEG")
  </code></pre>
  
  <p>but this image wont save</p>
  
  <pre><code>import numpy as np
  import PIL.Image
  
  def makePic(a, fmt='jpeg'):
      a = np.uint8(np.clip(a, 0, 255))
      f = StringIO()
      result=PIL.Image.fromarray(a).save(f, fmt)
      result=(Image(data=f.getvalue()))
      return result
  
  
  Img2 = np.float32(PIL.Image.new('RGB', (512,512)))
  imag=makePic(Img2)
  display(imag)
  imag.save("img1.jpg","JPG")
  
  ----&gt; 4 imag.save("img1.jpg","JPG")
  
  AttributeError: 'Image' object has no attribute 'save'
  </code></pre>
  
  <p>display(imag) shows the picture fine but python thinks it's not an image. why?</p>