finish textureManager integration, makes it a singleton.
Fix bug wiith animated sprite and the texture manager