Fixed wrong calculation for statistics of logged image intensity