Rewrite graph builder using canvas transformations