A correlated model of the nuclear photoeffect