added gamma correction to HDR luminance calculation