I found an article on Palinopsia which is interesting. It's pretty long so I cherry picked it but you can google to read the full article.
Excerpts from Bellmarra Health - Palinopsia: Types, causes, symptoms, diagnosis, and treatment...
"Palinopsia is defined as the persistent recurrence of a visual image after the stimulus has been removed. It is often described as having an after-image of an object, reappearing briefly after it has been removed from attention."
"Palinopsia is a broad term subdivided into two clinically relevant groups: illusionary and hallucinatory."
"Illusionary palinopsia can occur in migraine sufferers, after hallucinogen use, or be a side effect of prescription drug use, such as when using trazodone, clomiphene, oral contraceptives, or topiramate.
Hallucinatory palinopsia is the manifestation of an image where none previously existed. They are similar to complex hallucinations such as seeing objects, animals, or people that don’t exist. An example of this this: after seeing a cat, an almost identical cat remains fixed in the field of view. This may last for a few seconds or even a few hours in some cases."
"The most commonly observed symptoms of palinopsia:
Visual snow
Visual illusions
Photopsias – presence of perceived flashes
Teleopsia – perception that objects or much further than they are
Oscillopsia – objects appear to oscílate
Cerebral polyopia – seeing two or more images arranged in ordered row, columns, or diagonals
Entoptic phenomena – commonly seen as floaters of varying size in vision"
"It is believed that much of the reason why people develop palinopsia is due to conditions that affect the brain in the visual processing centers of the occipital lobe. These conditions may include tumors, visual pathway lesions, occipital lobe injury, or even certain medication use. However, palinopsia may also sometimes present in healthy individuals.
Causes of palinopsia include:
Toxicity:
Illicit hallucinogens: Mescaline, LSD, ecstasy
Prescription drugs: clomiphene, interlukin-2, trazodone
Metabolic conditions:
Non-ketotic hyperglycemia
Psychiatric conditions:
Schizophrenia
Psychotic depression
Structural cerebral lesions"
"Clinical diagnosis: Most cases of palinopsia are benign and idiopathic (having an unknown cause). However, hallucinatory palinopsia may be indicative of a more severe disease than its illusionary counterpart but is less common.
Diagnostic procedures: Hallucinatory palinopsia will often include a full ophthalmologic and neurologic history and physical exam. Automated visual field testing, as well as neuroimaging. This is because the hallucinatory type may be associated with serious neurological complications. While these tests may be useful in the illusionary type, they are not the ideal tests for investigating migraines.
Laboratory test: This will often induce the use of neuroimaging studies such as MRI for hallucinatory palinopsia."