Fixed the sprites background offset being output in reverse

See #27
Merge pull request #38 from LaurentGoderre/fix-37

Fixed the sprites background offset being output in reverse