\documentclass{article} 
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=6em, a4paper]{geometry}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{layout}
\usepackage{lipsum}


\newcommand\image[4]{
	\begin{figure}[#4]
	\begin{center}
		\includegraphics[width=10cm]{#1}
		\caption{#2}
		\label{#3}
	\end{center}
	\end{figure}

}

\title{Ce document a un titre}
\date{2075}
% Fin du préambule.
\begin{document}
	
	
	\lipsum
	
	\image{levallois.jpg}{Une jolie mairie}{patoche.home}{h}
	
	\lipsum
	
\end{document}
