we refactored spritesheet code