The role of intramolecular scattering in K-shell photoionization