the term that psychologists use for such phenomena is : hypnopompic image
Unlike any other form of visual, Hypnopompic image has no external simulation from our sensory organs. They believed that hypnopompic image is closer to a hallucination rather than an ordinary visual.