An improved method for quantitative magneto-optical analysis of superconductors