Design and Implementation of a High Resolution CMOS X-Ray Imager with Amorphous Selenium Sensor