In the documentation, I found the following line:
When showing an image, the library sends a header before the image stream. Because of this you CANNOT show an image directly in the middle of your page since output will have already started. It's very much the same as how you can't just toss a session_start() in the middle of your page. You can, however, get around this restriction in a relatively easy way, which we'll take a look at later.
However, I can't find the easy way to get around the restriciton that is mentioned. Could you please explain how to do this?