Fixed potential detach bug.

Began adding a gui render processor. Useful for Gui rendering.