On the hard X-ray spatial structure during the impulsive phase of solar flares