Hard X-ray imaging of two flares in active region 2372