Use pillow instead of PIL, more verbose exception