Switch from PIL to pillow.

Suggested in #449.
Merge pull request #449