fixed spritesheet parsing