implented Lua frame render function; began g2d library