Allow to set all write_graphite options

From the original commit, with permission of the author:

Also keep the defaults from the current implementation,
allowing to override them.