Added pw_draw function, sample rendering code