function fileList = getImageFileList(subjectdir,sessionlist,mask)
fileList = [];

for session = sessionlist;    
    [sessionFileList dd] = spm_select('FPList',fullfile(subjectdir,getSessionDirName(session)),mask);
    fileList = [fileList; sessionFileList];
end

end