generate GIF file