An exact calculation of the flavour-changing quark-photon vertex