implemented TextureManager into the system