Influence of the Purcell effect on the purity of bright single photon sources