write complete set of variable from encode tree to image