:Salam: I have also suffered from these was wasaawizs and alhamdulillah I'm recovering it from nw... I made big mistake by acting to those thoughts and chasing them....pls pls pls pls don't do that...it will ruin ur life...just pray to Allah to help u from this situation .only he can help u from this. This is all shaitaan. He will nw try to put doubts in our hearts or may even whisper that u r nt a Muslim.or u did something wrong which has ruined ur imam.all are nonsense thoughts.i was also stuck in the same problem.pls don't worry.be happy and do lot of zikr.u r not a kaafir at all.