add toggle text and image to log file.