Flash brightness is lower when confidence is low.
Added onset detection into the hair illumination code.