PIL is deprecated, obsolete. please use Pillow.

Find out How to use the Pillow