Green's functions for off-shell electromagnetism and spacelike correlations