[OpenMP][NFC] Extract device image handling into a class/header (#74129)

GitOrigin-RevId: b091a887e064a3c75c8ce37bd0e9f1c4bc0f54f6
6 files changed