What you are describing also might be hypnagognic imagery. As you begin to drift off to sleep, it is common to experience 'day dreams' of sorts. It's during this same period of sleep that you might experience a hypnic jerk. Ever been drifting off to sleep, already immersed in a dream, only to be 'jolted' awake? That's the same phenomenon.