NLO corrections to the photon impact factor: Combining real and virtual corrections