Or I would be grateful if you could help me make the following work
\documentclass{exam}
\usepackage{graphicx}
\usepackage[xparse,breakable,raster]{tcolorbox}
\newcommand{\TCBXheader}{%
\begin{tcbraster}[
raster columns=3, raster rows=1, valign=center,
raster height = 2cm, raster column skip = 0mm
]
\begin{tcolorbox}[left=0pt,right=0pt]
First line\\ Second Line
\end{tcolorbox}
\begin{tcolorbox}[halign=center]
Centered Text
\end{tcolorbox}
\begin{tcolorbox}[halign=right]
\includegraphics[height=2cm]{example-image-a}