SignaturePad as an angularJS directive