Refactored PDF/Image API to reduce code duplication
Add test case for images and some minor enhancements
Multiplexing image converter added.
Use dengalii's changes, Will fix manually and commit afterward.