Support local bundled gif file and network gif file.