Safe thumbnailing and not thumbnailing gifs