Implements paintFormXObject in svg.js