Port to rust-image