Updates render function to updated setAttr().