How do I replace a heading text area (ie h1, h2 etc) with a jpeg image?

What code would I have to enter and where?