Allow passing through file extensions to graph

Still defaults to png.
Merge pull request #17 from conzett/master

Allow passing through file extensions to graph