Where do hypnagogic images come from?
There are a few theories on this. Some people believe that even in very dark conditions, light still penetrates the eyelids, which makes the patterns of blood flow visible. This is interpreted by the brain as geometrical patterns and objects. Dream images (explained by Freud) or spontaneous memories will later join in.