create renderOptions in patch and pass it around