Sprite: Various enhancements (#913)

Fixes #913. (features 1 and 2 only).