moved blendfunc to draw()