Expose the 'offsetx' and 'offsety' attributes

Also added an example to explain their use.
Merge pull request #1 from rltoscano/patch-1

Expose the 'offsetx' and 'offsety' attributes