Make graphviz output to file, add parametrize output format