Emit graph to image file.