I have this code:
\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage{fontenc}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage[scale=0.75]{geometry}
\moderncvstyle{casual}
\moderncvcolor{blue}
\name{John}{Doe}
\begin{document}
\makecvtitle
\hbox{
\hspace*{0.2\textwidth}
\textcolor{color1}{\rule{5pt}{\textwidth}}
\hspace*{0.05\textwidth}
\includegraphics[]{/home/toogley/bew/img/passbilder/platzhalter.png}
}
\end{document}
which produces:
I want to move the picture to the middle of the line.
Normally, I'd try to solve that by using e.g. a figure
environment. But when i use that here, i receive the error
LaTeX Error: Environment figure undefined.
According to a related question, this error message means, i can't use it. Or rather, the only solution to use a figure environment, would be to change the way moderncv works.
Therefore, my question is whether there's a way without changing how moderncv works.