Fail with error message on missing image attributes
Merge pull request #2 from joernchen/master

Fail with error message on missing image attributes