Direct photons and dileptons via color dipoles