added code to write the imx file from uboot