For much of last year , this city of 300,000 was the largest haven in Iraq for the guerrillas , suspected of being the source of suicide car bombs in Baghdad and videos showing the beheadings of foreigners .