Cleaning up handling of PIL imports
Focussing exceptions
Quick generation, followed by background slow one if PIL present