Implementing saveBubbleShapeFactors to compute the flatness ratio and elongation ratio as Clift's book.