added thumb generation support for gifs