Properly handle wrap around for sprite drawing.
Merge pull request #13 from Ventero/drawing

Properly handle wrap around for sprite drawing.