I don't see your point. There is already a concat_niimgs() function in utils.