adding dowload gif and save gif functions