now save gif to local folder intead of temp. some clean up