Add 'export_image' method to 'ObjectGraph'.

This PR allows direct export of a graph to an image.

@sjagoe: You mentioned that you might find this feature useful.  Are you interested in a quick review before I merge?