Evaluation of a Commercial Off The Shelf CMOS Image Sensor for X-ray spectroscopy up to 24.9 keV. (December 2020)