Geometric analysis of planar shapes with applications to cell deformations