add figure and clean \n