disable pil import
log error message when pil cannot be loaded
Merge pull request #572 from corpaul/devel

check for pil import