Added export functionality

The Exportbutton now exports the graph to an image.