support animated gif

animated value from config
Merge pull request #466 from scuben/animated-gif

support animated gif