Added RG8 texture format.
Cleanup.