image_viewer: Fix `cargo test` errors (#24404)

This PR fixes the errors when running `cargo test` in the `image_viewer`
crate.

Release Notes:

- N/A
3ab48b31a1Marshall Bowers committed on 2/6/2025, 10:38:35 PM· committed by GitHubparent00971fb
1 file changedLine totals unavailable