Magnetic imaging and statistical analysis of the metamagnetic phase transition of FeRh with electron spins in diamond