Fix snapshot() and regen() of StdGraphView. Support more dot images.
Replace mkdirs with mkdir.