I seriously doubt the spasm was because of the contrast used. More likely from the position you had to stay in for an extended amount of time. Did they give you a wedge to put under your legs while you were in the MRI tunnel? I used one every time and it helped....but it was still uncomfortable having to lie so still.
It's true that the rooms are way too cold. They used to give me a blanket. Between that and the wedge for my legs I could have gone right to sleep had it not been for the banging and clanging of the machine!