Mapping the X-ray emission region in a laser-plasma accelerator