Static And Gradient Field Inhomogeneity Compensation For Low-Cost Mri Machines