added plotting function and a plotted image