Adding scaleToSize functions for BezierPath