extra error checking for images not found