Update Canvas2ImagePlugin.java

added the possibility to save png or jpeg files