Rear derailleur rubbing frame

Hi,
First time fitting anything to my bike, so please be gentle. I have installed new shifters, cassette and rear derailleur. I having trouble fitting the rear derailleur correctly, it was looking ok, and then I took it for a spin and the rear derailleur ended up rubbing against the frame as seen in the image below:
First time fitting anything to my bike, so please be gentle. I have installed new shifters, cassette and rear derailleur. I having trouble fitting the rear derailleur correctly, it was looking ok, and then I took it for a spin and the rear derailleur ended up rubbing against the frame as seen in the image below:

0
Posts
There is no secret ingredient - Kung Fu Panda
London Calling on Facebook
Parktools
If not there will a stop on the mech to butt up with the tab on the hanger.
Should look like this
There is no secret ingredient - Kung Fu Panda
London Calling on Facebook
Parktools