fix formatting error of image without attributes