added computation of ellipse radius for better balloon positioning