Fail with error message on missing image attributes