Real and imaginary-time Q anti-Q correlators in a thermal medium