Added an option to specify the render to texture layer.