pDraw: Support for anonymous functions