Update cornsweet tonemap algorithm