Refactoring sprites to SpriteLibrary