update the textures.