Mode Engineering of Single Photons From Cavity Spontaneous Parametric Down-Conversion Source And Quantum Dots