Add a PIL compatibility check
Merge pull request #182 from davidfischer/pil-compat

Add a PIL compatibility check