added filename of image to error message