Changing PIL imports to work with both PIL and Pillow

As per:
https://pillow.readthedocs.org/en/latest/porting-pil-to-pillow.html

This means Dowser will run with either PIL or Pillow installed.
Merge branch 'make-compatible-with-pillow' into require-either-pil-or-pillow