Added error handling for 404'd images