add background average-brightness compensation (reduce effect of exposure change)