Sprite component refactor and test