@staticmethod
def _draw_hline(**kwargs):
    """Draw a grid of horizontal lines."""
    for y in range(0, kwargs['im_height'], kwargs['grid_size']):
        kwargs['grid'].line([(max(0, kwargs['padding_left']), min(max(y,
            kwargs['padding_top']), kwargs['im_height'] - kwargs[
            'padding_bottom'])), (kwargs['im_width'] - kwargs[
            'padding_right'], min(max(y, kwargs['padding_top']), kwargs[
            'im_height'] - kwargs['padding_bottom']))], fill=kwargs[
            'grid_colour'], width=kwargs['line_width'])
