Does the power of imagination may be related to thought, can be also related to waswas?

The power of imagination is not that same as thoughts, even though thoughts are a necessary component. The power of imagination is the ability to visualize objects/concepts in the mind, to analyze their details, and to he mover and affected by them. Waswas occurs when an obsession develops in the mind/spirit. It is negative, obsessive thoughts. So yes it is related.