fix spritesheet for python3