You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: OspreyAddImages.m
    path of file: ./repos/osprey/utilities
    
    the code of the file until where you have to start completion: function [MRSCont] = OspreyAddImages(MRSCont)
%% [MRSCont] = OspreyAddImages(MRSCont)
%   This function allows adds the three plane images into the container to
%   make it transferable
%
%   USAGE:
%       MRSCont = OspreyAddIamges(MRSCont);
%
%   INPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   OUTPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   AUTHOR:
%       Dr. Helge Zollner (Johns Hopkins University, 2021-05-06)

    
function [MRSCont] = OspreyAddImages(MRSCont)
%% [MRSCont] = OspreyAddImages(MRSCont)
%   This function allows adds the three plane images into the container to
%   make it transferable
%
%   USAGE:
%       MRSCont = OspreyAddIamges(MRSCont);
%
%   INPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   OUTPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   AUTHOR:
%       Dr. Helge Zollner (Johns Hopkins University, 2021-05-06)
%       hzoelln2@jhmi.edu
%   
%   CREDITS:    
%       This code is based on numerous functions from the FID-A toolbox by
%       Dr. Jamie Near (McGill University)
%       https://github.com/CIC-methods/FID-A
%       Simpson et al., Magn Reson Med 77:23-33 (2017)
%
%   HISTORY:
%       2021-07-23: First version of the code.


%% Pack images from coregistration
osp_CheckRunPreviousModule(MRSCont, 'OspreyCoreg')
for kk = 1 : MRSCont.nDatasets
    % Load T1 image, mask volume, T1 max value, and voxel center

        if ~exist(MRSCont.coreg.vol_image{kk}.fname,'file')
            gunzip([MRSCont.coreg.vol_image{kk}.fname, '.gz']);
        end