A class to generate PNGs of grids