error message when unable to write image to file