moving plot function and plot images to github repository