Improved optimization strategies for autofocusing motion compensation in MRI via the analysis of image metric maps.