Fixed bug where sprites could not be added to generated texture.
Merge branch 'sprite-bug'