Handle Exception for calls into PIL as it can throw unusual errors.

See: https://github.com/SmileyChris/easy-thumbnails/issues/335 for more details.