Adding spritesheet calculations