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: icatb_plotImage.m
    path of file: ./repos/gift/GroupICAT/icatb/toolbox/eegiftv1.0c
    
    the code of the file until where you have to start completion: function [axesHandle, colorbarHandle] = icatb_plotImage(varargin)
%% Plot image.

% Don't display colobar warnings for R2008a.
warning('off', 'MATLAB:colorbar:DeprecatedV6Argument');

icatb_defaults;
global FONT_COLOR;
global UI_FONTNAME;
global UI_FONTUNITS;

titleText = '';
cDataMapping = 'scaled';
titleColor = 'c';

fontSize = 0.05;

axesHandle = [];

    
function [axesHandle, colorbarHandle] = icatb_plotImage(varargin)
%% Plot image.

% Don't display colobar warnings for R2008a.
warning('off', 'MATLAB:colorbar:DeprecatedV6Argument');

icatb_defaults;
global FONT_COLOR;
global UI_FONTNAME;
global UI_FONTUNITS;

titleText = '';
cDataMapping = 'scaled';
titleColor = 'c';

fontSize = 0.05;

axesHandle = [];
colorbarHandle = [];

% get input variables
for ii = 1:2:nargin
    if strcmpi(varargin{ii}, 'parent')
        axesHandle = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'data')
        data = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'cdatamapping')
        cDataMapping = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'axesclim')
        axesClim = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'colormap')
        cmap = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'titlecolor')
        titleColor = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'title')
        titleText = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'colorbarlim')
        colorbarLim = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'colorbarposition')
        colorbarPosition = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'colorbarminmaxtext')
        colorbarMinMaxText = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'text_left_right')
        text_left_right = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'xlabel')
        xlabelStr = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'ylabel')
        ylabelStr = varargin{ii + 1};
    end