Render images in resource based PDF exports (fixes #1371)