The quark-photon vertex and meson electromagnetic form factors