Revert "Render to texture code"

This reverts commit 0038f861f1f7f2d37675127347433d52cf8b6fbc.
Render to texture