moving plot graph to images