Fixed invalid references to grid.min and grid.max in function render_panel_as_graphite_png()