Expose the 'offsetx' and 'offsety' attributes

Expose the 'offsetx' and 'offsety' attributes. Also added an example to explain their use.