protect against NULL stored images