restoring the old on beforerender behaviour. (before it renders the component in question) and added a new onbeforeRenderFrame which is currently used just by the camera