variable renames, ported def tilerender()