For mouse signature drawing I like this library the most: https://github.com/szimek/signature_pad
Be aware that capturing a signature that way is mostly symbolic though, and carries limited legal value compared to real paperwork.
The moment the customer disputes that the contract you "glued" his signature under, is the one he agreed too, you still have a problem.