disable pil import
log error message when pil cannot be loaded