Added support for spritesheets and sprites.