onRender() method modified; added support for rendering to texture in camera component