Not sure but it looks like the spring behind the main fixing bolt is not working correctly, broken or needs to be reset. Pull the derailleur off the frame and check out the spring. When you push the upper half of the derailleur forward you should be pushing against chain tension. Take a look at some derailleurs that are working correctly.
Al