animated gif functionality