As described in the title. What I'm trying to design is this:

This screenshot is from my .docx document. I have extracted the upper-right image. However, when I'm trying to define the header, I got a very bad result.
If I keep increasing the image size, the header will overlap with the main text. And, I have completely no idea how to add the page number on it.
Could anyone let me know what I should do in this case? The tex file content is:
\documentclass[12pt]{article}
\usepackage[
a4paper,
margin=1in,
headsep=18pt, % separation between header rule and text
]{geometry}
\usepackage{xcolor}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{color}
\newcommand{\statement}[1]{\medskip\noindent
\textcolor{black}{\textbf{#1}}\space
}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{
\textcolor{gray}{Name}}
\fancyfoot[C]{\footnotesize\thepage}
\rhead{\textcolor{gray}{Institution}\includegraphics[width=1.5cm]{header.png}}
\let\oldcenter\center
\let\oldendcenter\endcenter
\renewenvironment{center}{\setlength\topsep{0pt}\oldcenter}{\oldendcenter}
\newcommand{\wordcount}{
\begin{center}
\rule{0.75\textwidth}{.4pt}\
{\footnotesize A statement of \numwords \ words}
\end{center}
}
\newif\ifcomments
\newcommand{\comment}[1]{}
\newcommand{\todo}[1]{\ifcomments\textcolor{red}{TODO: #1}\fi}
%%%%%%%%%%%%%%%%%%%%% Edit this section %%%%%%%%%%%%%%%%%%%%
\commentstrue
\newcommand{\soptitle}{Statement of Purpose}
\newcommand{\yourname}{My Name}
\newcommand{\yourintent}{Applicant for a PhD in The Thing}
\newcommand{\school}{The University}
\newcommand{\advisorfirstname}{FirstName}
\newcommand{\advisorlastname}{LastName}
\newcommand{\advisorfull}{Prof. \advisorfirstname \ \advisorlastname}
\newcommand{\advisor}{Prof. \advisorlastname}
\newcommand{\numwords}{\todo{number}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
breaklinks,
pdftitle={\yourname - \soptitle},
pdfauthor={\yourname},
unicode,
colorlinks,
urlcolor={blue!80!black}
]{hyperref}
\begin{document}
\statement{Introduction} I want to work with \advisorfull. \advisor \ is good. \href{https://www.google.com}{Here} is my website.\footnote{Footnote}
\wordcount
\end{document}

