That tells me that check_niimgs needs a copy argument :)