add plot_graph func, plot3k func, and fix read image func.