Logging out the image name when failing