def makeImage(data, cfg):
    u'\n    '
    (width, height) = (data['width'], data['height'])
    if cfg['copyright']:
        height += 48
    im = Image.new('RGB', (width, height), cfg['background-color'])
    dr = ImageDraw.Draw(im)
    for (ln_idx, line) in enumerate(data['lines']):
        __makeLine(im, line, cfg)
    drawBorder(im, dr, cfg)
    drawCopyright(im, dr, cfg)
    return im
def makeImage(data, cfg):
    u'\n    '
    (width, height) = (data['width'], data['height'])
    if cfg['copyright']:
        height += 48
    im = Image.new('RGB', (width, height), cfg['background-color'])
    dr = ImageDraw.Draw(im)
    for (ln_idx, line) in enumerate(data['lines']):
        __makeLine(im, line, cfg)
    drawBorder(im, dr, cfg)
    drawCopyright(im, dr, cfg)
    return im