Added support for images in headers/footers.