Dependency on PIL changed to pillow