Using Verilog file IO to output image result