X-ray imaging of fast dynamics with single-pixel detector.