One of the common mistakes that can be made with mobile telephones is that it is possible to image the operating system. This is not correct as mobile telephone operating systems are not OSs that can be imaged from hard disc drives (HDD) and copying the chip containing the mobile telephone operating system would be a breach of the intellectual property rights belonging to the mobile telephone manufacturers.
However, with the introduction of smartphones it is posible to configure the ROM and upload a new configuration for ROM. The XDA OSImageTool is a very useful tool to obtain the OS in the ROM. This is just one tool in a collection of tools required to complete the overall job.
This tool requires two additional DLLs - Rapi and Ceutil. I have added these as well to provide some help.