the filter of Gausse for library KineticJS (adaptation)