Example of spritesheet logic in Corona SDK