Update: new formula for calculating luminance statistic