Spontaneously Localized Photonic Modes Due to Disorder in the Dielectric Constant