recording actions and replaying as GIF