PIL is deprecated, obsolete. please use Pillow. Find out How to use the Pillow How to use Pillow, a fork of PIL