A novel method for fast image simulation of flat panel detectors