Commit a PNG diagram.