Implemented the TextureMap

also added a TextureMap class, for managing the textures