[Concept] [PATCH 12/21] mkimage: Update copy_file() etc. to take an imgtool parameter