Determination of electron flux spectrum images in solar flares using regularized analysis of hard X-ray source visibilities