Sprite: Case-insensitive test for query status.
Merge pull request #1026 from am11/master

Sprite: Case-insensitive test for query status
Fixes bug with sprite name colliion

If the sprite name is the same name as any of the files in the sprite, then the sprite creation will fail.

This fix checks for this and adds "_sprite" to the file name if there is a collision.