Beyond Poisson–Boltzmann: Images and correlations in the electric double layer. I. Counterions only