Added option for setting the NAND image size field, this is required when stat() returns zero such as when using block devices.