Update Canvas2ImagePlugin.js

bugfix