Refactored sprite management