The AGL equation from the dipole picture