afterimage

/ˈæftərˌɪmɪdʒ/

noun

An impression of a vivid sensation (especially a visual image) retained after the stimulus has ceased.

They could also be after-images, hypnagogic imagery, or memory images with subliminal material that was not veridical.