CMOS x-ray image sensor with pixel level A/D conversion