ImageAverager class dropped in favor of a function

Now it inherently resets the average image at every function call
unlike before.
CHANGES updated