with immediate_buffer(context, commandpool) as cmd:
                self.final_image.update_layout(
                    cmd, vc.ImageLayout.PREINITIALIZED,
                    vc.ImageLayout.TRANSFER_DST_OPTIMAL,
                    vc.PipelineStage.HOST,