This StackOverflow answer may be useful:
http://stackoverflow.com/questions/7877282/how-to-send-image-generated-by-pil-to-browser
This StackOverflow answer may be useful:
http://stackoverflow.com/questions/7877282/how-to-send-image-generated-by-pil-to-browser