Made npix a proper kwarg