Airbox (or lack of airbox) has been conveniently placed out of frame in those pics. MAF no like dirtly air dood.
Secondly, I can't tell what has, or has not, been hacked with the MAF wiring. Has it been shortened, or cut at ANY point in it's life?
Your idle issues are being caused by problems under your hood. Redundant to say, but true. It could be anything from dirty MAF, to crappy kinked/IAC hose, to shoddy wiring. IDK what you want us to tell you, but I will tell you what Tbrickers never wanna hear, "pull all that crap out, and put the good factory **** back in." I think that statement carries merit in this scenario.
Thread title says poor idle. I see a terrible intake rig. Start there.
EDIT-<<< rereads post one to try to get more info. My GUESSES are at this point:
1. your car can't handle the lower vacuum of the cam due to hackwork and airleaks
2. you did something wrong in the cam swap like fugged up the timing belt install
3. hackwork
4. or a mixture of all of the above.