updated 10/12 Thank you @Rmano, I failed to reply well in the comment section, so I show my problem here:
I tried
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L,C]{}
\fancyhead[R]{test}
it came out fine. The word "test" appears in the header.

But when I tried
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L,C]{}
\fancyhead[R]{\includegraphics{example-image}}
It couldn't produce anything. What am I missing here? Where can I study the whole thing through?
Original post:
I'm a total beginner of the LaTeX system. I'm writing lecture handouts for my students, and I'm choosing which software to use. I learned that LaTeX is better at scientific expression, but I have a problem: I want the handouts to be able to use decorative chapter/section titles and page numbers.
I want to know if it's possible, and if so, what should I learn.( I mean like which package can do this)
What I want is something like the following (the real pictures would be more complicated):
page number on top left
page number on top right
section titles
My questions are
How can I set the format of page numbers, and make sure the left hand pages get the left page number image, and the right hand pages get the right page number image?
How can I set the format of section titles ( I mean like creating a code "format1"), so I can type something like "\format1 point A ; alkanes" and "\format1 point B ; alkenes" in TeX, and it creates the corresponding images as section titles?


\includegraphicsdirectly --- even into a TikZ node text. But you should prepare a small example, complete, showing us where you got stuck so that we can help you... – Rmano Oct 12 '21 at 09:11example-imagefor the image, it's in all LaTeX distribution – Rmano Oct 12 '21 at 10:15