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

Save as for graph (rebased onto develop)