Remove moving average attempt and replace by simpler approach

Calculate rough black/white thresholds per line and override decision derived from deltas if a bar's luminance is below/above it.