Making animated gif to loop forever