Render2d utility, and fixes