replace PIL with Pillow

fixes #599 
fixes #649 

Pillow is a fork of PIL, with newer features and more (pip) packaging friendly.