flatten stage4 image via export/import + misc tweaks