match the reference image