svg external bitmap

This patch enables saving bitmaps in svg as external files, so as to reduce output size and rendering costs, and allow easier post-processing of bitmaps.

Currently only DCT images can be saved as jpg, other images are still embedded in svg.

One of the reasons is that poppler may be built without them, if poppler is not, there's nothing we can do here except for showing warnings.