Adds a clear() method to render targets.
Misc. fixes and improvements.