add figure template
revise pgf figure texmplate