Production rate of hard thermal photons and screening of quark mass singularity