Improving The Functional Efficiency Of Fpga Firmware For High-Speed X-Ray Cameras