python pil: how to write png image to string,"image.save(output, format='GIF')"