A programmable-dynamic pixel for use in a multispectral imager