Pillow and pep8

Use Pillow in the tests
Update for new version of pep8