We present the results of a new analysis of the data of the MiniBooNE experiment taking into account the additional background of photons. MiniBooNE normalises the rate of photon production to the measured $pi^0$ production rate. We study neutral current (NC) neutrino-induced $pi^0$/photon production ($ u_mu + A to u_mu +1pi^0 / gamma + X$) on carbon nucleus (A=12). Our conclusion is based on experimental data for photon-nucleus interactions from the A2 collaboration at the Mainz MAMI accelerator. We work in the approximation that decays of the intermediate states (non-resonant N, $Delta$ resonance, higher resonances) unaffected by its production channel, via photon or Z boson. $1pi^0+X$ production scales as A$^{2/3}$, the surface area of the nucleus. Meanwhile the photons incoherently created in intermediate states decays will leave the nucleus, and that cross section will be proportional to the atomic number of the nucleus. We also took into account the coherent emission of photons. We show that the new photon background can explain part of the MiniBooNE low-energy excess, thus significantly lowering the number of unexplained MiniBooNE electron-like events from $5.1sigma$ to $3.6sigma$.