Better error messages in the case that an image file is missing