A reexamination of polyimide formation