Add graph export as image (e.g. png)

It would be useful to be able to generate static graph images for (for example) automated email reports