genimg, stage0, stage1 features

genimg: Copy data into image.
stage0: Complete?
stage1: Switch to long mode