Added cubic curve resize code.