add brightness averaging