added funtion to generate a spritesheet of tetrahedron animations