added new 'execute' utility function and using it in RenderTexture