Timepix detector as a tool for X-ray and gamma dosimetry. (December 2017)