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.

OK now, I think I'm convinced that it's ok this way. Thank you for your patience,
Might change in the future in case we find any issue on this.