A 138-dB dynamic range CMOS image sensor with new pixel architecture