replaced outdated comments by check_niimgs