Generate the mean image and substract it from the leveldb entries.
remove the mean when generating the output.