adding appropriate error message when image fails