Completed the CTexture and CTextureManager classes