Use addElement() instead of addChild()
Fix formatting of style attribute + add fill-opacity attribute