To investigate the association of characteristics of type 2 diabetes mellitus ( duration and biochemical severity of diabetes ) to brain structure measured on magnetic resonance ( MR ) images , specifically testing whether more severity in metrics of diabetes is inversely correlated with brain volumes and positively correlated with ischemic lesion volumes .