Angular.js directive to paint on canvas with mouse or touch