Update image.class.js

added \n to toSvg, fixed export in case of pathgroup or single image.
Correctly exported and rendered x and y that where first ignored.