Correlation and image charge effects in electric double layers