minor cleanup to tile rendering