A method to analyze imaging radio data on solar flares