Purely Functional Rendering Engine