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.