Fix bug preventing the preview of gifs