Added a size check to the save-routines so the bezier should not get too large.