Sprite generator optimizations