Patient-specific femoral and tibial cutting blocks produced with use of data from preoperative computed tomography ( CT ) or magnetic resonance imaging ( MRI ) scans have been employed recently to optimize component alignment in total knee arthroplasty .