private function generateGrid()
    {
        $this->addRectangle(
            $this->grid_padding,
            ($this->height-$this->grid_padding),
            ($this->width-$this->grid_padding),
            $this->grid_padding
        );
    }