- fixed PIL imports
- removed some of the duplicated imports