Using Pillow instead of PIL

Pillow is a wrapper around PIL to make it play nicely with virtualenv and similar. Otherwise the functionality remains the same.