Imaging the nonlinear grating in frequency-doubling fibres