X-ray imaging of three flares during the impulsive phase