title: How to convert a Pyglet image to a PIL image?
body: <p>i want to convert a Pyglet.AbstractImage object to an PIL image for further manipulation
  here are my codes</p>
  
  <pre><code>from pyglet import image
  from PIL import Image
  pic = image.load('pic.jpg')
  data = pic.get_data('RGB', pic.pitch)
  im = Image.fromstring('RGB', (pic.width, pic.height), data)
  im.show()
  </code></pre>
  
  <p>but the image shown went wrong.
  so how to convert an image from pyglet to PIL properly?</p>