Added temp mode and gamma correction to rainbow