Properly copies style attributes
Merge pull request #14 from jontore/patch-1

Properly copies style attributes