Huge IO perfomance improvement

Now it needs only about 500 MB of RAM instead of
1700 MB. To do that, the output file (ROM file) it is
not written internally (to a MemoryBuffer Streaim)
but directly to the FileStream Stream (to disk).