hook in machine_image