Adding support for animated gifs