Revs can be erratic when idle

I'm totally stomped. I have an MGF N reg. When accelerating hard so the revs are high and then immediately disengaging the clutch my
engine gets stuck at high revs for 2-4 seconds. Also when starting my car the revs can either go too high or nothing at all forcing me to accelerate to prevent stalling. Any advice would be much appreciated as nobody seems to know the solution. Some people have suggested the ECU. Is this looking to be n expensive job or can there be a short term solution for now?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.