Paint.js core extensions