Imagination and thinking : a psychological analysis