Fix big in size function for animated gifs