X-ray imaging and readout of a TPC with the Medipix CMOS ASIC door A. Fornaini