Switch from PIL to pillow.

Suggested in #449.