Code for MR image reconstruction