Update Canvas2ImagePlugin.js

added optional parameters fileExtension, quality