animated gif parsing