Damn that boy!
Actually, if you take that appearance on Dick Cavett's show as consistent with one of the sub-themes of the film...that Gump was responsible for a number of historical and cultural happenings throughout the 60's and 70's (Watergate, the running craze, the happy face t-shirt) then that reference to 'Imagine' makes no sense.
The reason?
'Imagine' was released in 1971. Gump's appearance on Cavett's show was in 1972.
Watch the film again. You'll see.