Pass the return code of img_main back to the calling function