There is no way of controlling thoughts and imagination other than through (the Name of) God. When someone is called out to repeatedly, he has to turn around and see who is calling. Similarly, when God’s Name is chanted continuously, He has to attend to the devotee.
(Ref. : Sanatan’s Holy text – The Teachings of Saint Bhaktaraj Maharaj)