Pass tolerance to ReplayGroup

The tolerance instead of the squared tolerance must be passed to the ReplayGroup constructor.
Merge pull request #2325 from elemoine/imagevector

Pass tolerance to ReplayGroup