update example to construct a GIF