port of smallvcm renderer to ocaml