def GET(self, username, width=1200, height=400, labels=False):
        web.header("Content-Type", "image/png")
        
        width = int(width)
        height = int(height)
        
        series_set = get_series(username, 12, 25)
        
        # Create the output
        output = FileOutput(padding=0, style=long_style)
        
        if series_set:
            scale = AutoWeekDateScale(series_set, year_once=False)
        
            # OK, render that.
            wg = WaveGraph(series_set, scale, long_style, not bool(labels), textfix=True)
            output.add_item(wg, x=0, y=0, width=width, height=height)
        else:
            output.add_item(Label("invalid username"), x=0, y=0, width=width, height=height)


        
        # Load it into a PIL image
        img = Image.open(output.stream('png'))
        
        # Load the watermark
        mark = Image.open(os.path.join(os.path.dirname(__file__), "watermark.png"))
        
        # Combine them
        nw, nh = img.size
        nh += 40
        out = Image.new("RGB", (nw, nh), "White")
        out.paste(img, (0,0))
        out.paste(mark, (210-width, height+10))
        
        # Stream the result
        outf = StringIO()
        out.save(outf, "png")
        outf.seek(0)
        print outf.read()
dataset/ETHPy150Open andrewgodwin/lastgraph/lastslice/slice.py/LongSlice.GET/swapped operands of `-`