[Tex/LaTex] Moderncv: picture below name and line in casual style

moderncvpositioning

I found a screenshot of a cv that is obviously an adaption of the moderncv class with casualsettings:
desired cv style

The two differences to the normal casualsetting are that the photo is below the name and title, instead of the left upper corner. Furthermore the title 'curriculum vitae' has a different position. While I managed to shift the title to the left, I still cannot figure out how to move the photo.

Can you help me to adapt the moderncvclass example to look like depicted in the picture? Thanks a lot in advance! (I left out shifting the title to the left in the MWE, for simplicity)

MWE:

\documentclass[11pt,a4paper,roman]{moderncv}        
\moderncvstyle{casual}                             
\moderncvcolor{blue}                              
\usepackage[scale=0.75]{geometry}       
\name{John}{Doe}
%\title{Curriculum Vitae} % Commented it out, as most important step would be photo   
\photo[80pt][0.4pt]{foto.png}
% document                         
\begin{document}
\makecvtitle
\section{Personal Data}
\cvitem{Name}{John}
\cvitem{Surname}{Doe}
\cvitem{...}{...}

\end{document}

Best Answer

\documentclass[11pt,a4paper,roman]{moderncv}        
% moderncv themes
\moderncvstyle{casual}                             
\moderncvcolor{blue}                              
\usepackage[scale=0.75]{geometry}       
\name{John}{Doe}
\title{Curriculum Vitae}   
\photo[80pt][0.4pt]{example-image-A}
%%%%%% The following passage moves 'Curriculum Vitae' from right to left:
\renewcommand*{\titlefont}{\LARGE\mdseries\upshape}
\makeatletter
\renewcommand*{\makecvtitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
\recomputecvlengths%
% ensure footer with personal information
\makecvfoot%
% optional picture
\newbox{\makecvtitlepicturebox}%
\savebox{\makecvtitlepicturebox}{%
\ifthenelse{\isundefined{\@photo}}%
  {}%
  {%
   \setlength\fboxrule{\@photoframewidth}%
   \ifdim\@photoframewidth=0pt%
     \setlength{\fboxsep}{0pt}\fi%
    {\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
\hfill%\usebox{\makecvtitlepicturebox}%
% name
\@initializelength{\makecvtitlepicturewidth}%
\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%
\parbox[b]{\textwidth-\makecvtitlepicturewidth}{%
 \raggedleft\namefont{\color{color2!50}\@firstname} {\color{color2}\@familyname}}\\        [-.35em]% 
{\color{color2!50}\rule{\textwidth}{.25ex}}%
% optional title
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\null\titlestyle{\@title}}
\hfill\smash{\raisebox{\dimexpr-\ht\makecvtitlepicturebox+\baselineskip\relax}{%
  \usebox{\makecvtitlepicturebox}}}\\[2.5em]  % optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{{\null\hfill\begin{minipage}   {\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\hfill\null\\[2.5em]}}%
\par}%
\makeatother
%%%%%%% End of passage

% document                         
\begin{document}
\makecvtitle
\section{Personal Data}
\cvitem{Name}{John}
\cvitem{Surname}{Doe}
\cvitem{...}{...}

\end{document}

enter image description here

I'm not sure how much font matching you wanted to the image you were showing, but here are a few other possible changes:

enter image description here

which is obtained with

\documentclass[11pt,a4paper,roman]{moderncv}        
% moderncv themes
\moderncvstyle{casual}                             
\moderncvcolor{blue}                              
\usepackage[scale=0.75]{geometry}       
\name{John}{Doe}
\title{\textsf{\textit{Curriculum Vitae}}}   
\photo[80pt][0.4pt]{example-image-A}
%%%%%% The following passage moves 'Curriculum Vitae' from right to left:
\renewcommand*{\titlefont}{\LARGE\mdseries\upshape}
\makeatletter
\renewcommand*{\makecvtitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
\recomputecvlengths%
% ensure footer with personal information
\makecvfoot%
% optional picture
\newbox{\makecvtitlepicturebox}%
\savebox{\makecvtitlepicturebox}{%
\ifthenelse{\isundefined{\@photo}}%
  {}%
  {%
   \setlength\fboxrule{\@photoframewidth}%
   \ifdim\@photoframewidth=0pt%
     \setlength{\fboxsep}{0pt}\fi%
    {\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
\hfill%\usebox{\makecvtitlepicturebox}%
% name
\@initializelength{\makecvtitlepicturewidth}%
\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%
\parbox[b]{\textwidth-\makecvtitlepicturewidth}{%
 \raggedleft\namefont{\color{color2!50}\textsf{\@firstname}} {%
  \color{color2}\textsf{\@familyname}}}\\        [-.35em]% 
{\color{color2!50}\rule{\textwidth}{.25ex}}%
% optional title
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\null\titlestyle{\@title}}
\hfill\smash{\raisebox{\dimexpr-\ht\makecvtitlepicturebox+\baselineskip\relax}{%
  \usebox{\makecvtitlepicturebox}}}\\[0.5em]  % optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{{\null\hfill\begin{minipage}   {\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\hfill\null\\[2.5em]}}%
\par}%
\makeatother
%%%%%%% End of passage

% document                         
\begin{document}
\makecvtitle
\section{Personal Data}
\cvitem{Name}{John}
\cvitem{Surname}{Doe}
\cvitem{...}{...}

\end{document}