Add option to export graph as jpeg or png.
Merge pull request #2665 from jburel/graph-as-jpeg

Save as for graph