Use GIF structure from standard library
Use loop count from GIF structure