renamed error string, added error to the image filename