Update requirements to recent versions; replace PIL by Pillow; update version to 0.3.2
Adjust to Pillow switch; fix some missing includes while there
Adjust to Pillow switch