Add a new option to save the graph images and loop closures