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: createPeakTriggeredImages.m
    path of file: ./repos/ciatah/+ciapkg/+api
    
    the code of the file until where you have to start completion: function [outputImages, outputMeanImageCorrs, outputMeanImageCorr2, outputMeanImageStruct] = createPeakTriggeredImages(inputMovie, inputImages, inputSignals, varargin)
	% Gets event triggered average image from an input movie based on cell images located in input image and trace matrix.
	% Biafra Ahanonu
	% started: 2015.09.28, abstracted from behaviorAnalysis
	% inputs
		% inputMovie - [x y frames]
		% inputImages - [x y nSignals]
		% inputSignals - [nSignals frames]
	% outputs

    
function [outputImages, outputMeanImageCorrs, outputMeanImageCorr2, outputMeanImageStruct] = createPeakTriggeredImages(inputMovie, inputImages, inputSignals, varargin)
	% Gets event triggered average image from an input movie based on cell images located in input image and trace matrix.
	% Biafra Ahanonu
	% started: 2015.09.28, abstracted from behaviorAnalysis
	% inputs
		% inputMovie - [x y frames]
		% inputImages - [x y nSignals]
		% inputSignals - [nSignals frames]
	% outputs
		%

	[outputImages, outputMeanImageCorrs, outputMeanImageCorr2, outputMeanImageStruct] = ciapkg.image.createPeakTriggeredImages(inputMovie, inputImages, inputSignals,'passArgs', varargin);
end