Fleshed out the texture manager.