How can i cure PIED?

I was addicted to porn for more dhan 6-7 years and it has caused issues in the bedroom. I have been pornfree for 3 months but i still masturbate by fantasizing stuff.

I have a loving girlfriend and i am attracted to her. But because i dont view her as an sexual object i dont get aroused or hard when i am with her. At most i can get semi erect with her while cuddling. But not a complete boner!

Does this have to do with porn? Has anyone cured this kind of problem? What steps have u taken to cure yourself from this.

Are there any ways to rewire my arousal to my girlfriend?

Should i try to masturbate by fantasizing about my gf in order to rewire?