Fix reseting of gif animation after timeout executed