smarter gif file string