Fixes sprite_add when subimages > 1

When loading external resources using a subimages argument greater than
1, the resulting image appears interlaced and incorrect.  This commit
fixes that.
Merge pull request #798 from Heathtech/master

Fixes sprite_add when subimages > 1