fix function NbImage