In some edge case the image handler is not available, now doesn't throw an exception
Merge pull request #360 from terwey/image_class_fix

In some edge case the image handler is not available, now doesn't throw ...