I wish insert an image at the beginning of a chapter that, like in the figure attached, is seen in the white space at right of the title. Moreover, it must be different for every chapter of the book.
I tried the following MWE:
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[block]
{%\rule{1in}{1in}
\normalfont\huge\bfseries}
{\chaptertitlename\ \thechapter\\}
{0pt}
{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{40pt}
\begin{document}
\chapter{Example}
\end{document}
But it creates (or add) an image before the word "Chapter".



width=\textwidthin your code, but the image is not centered and runs into the margins (I have slightly larger margins). What can be done so that image is in within the textwidth? – Damitr Apr 07 '23 at 07:29