error in cam updating and checking for existence of gif before downloading