progress calculation fix, display animated gifs