Improved Complementary Metal Oxide Semiconductor Digital Pixel Sensor