support phantomjs
save chart by phantomjs
fix path