Better computation of the frequency map.

Compute also the mean img.
Actual frequency map (the previous one was bogus)