fixed ellipse bounds calculation