script to regenerate the thumbnails of all gifs