Developments in GaAs pixel detectors for X-ray imaging