Fixed the sprites background offset being output in reverse

See #27