added NPIXELS keyword flag