Modified to skip animated gifs