Added an error message if an image doesn't load.