FIxed a problem with animated GIFS and added support for them