I am using the overpic package to place text inside of a figure.
For using line breaks inside a `put` command I use `parbox` (see example code).

```
\documentclass{article}
\usepackage{graphicx}
\usepackage[percent]{overpic}

\begin{document}

\begin{figure}[h!]
\centering
\begin{overpic}[width=0.3\textwidth]{example-image}
\put(56,47){\parbox{10cm}{some\newline too long text}}
\end{overpic}
\end{figure}

\end{document}

```

Using this code, the text is aligned left at the specified position of the `put` command.
How can I center the text around the specified position in the `put` command so that in the example code "some" should appear somewhere above "long"? Note that using `centering` centers the text around the middle of the figure which is not what I want.