Fixed texturehandler so it uses std::list (not ideal, but easier to comprehend)