Refactored SpriteComponent constructor