Added support for animated gifs.