Extracting the ρ meson wavefunction from HERA data