small cleanup of bezier functions
adding figure scaling