add gif refreshing mode