Implemented the smooth signature in the project using the calculation to find the mid path of the stroke.