Made the script to combine the textures more generic, so it could be used for many different textures.