Use FOP's wrapper classes to load images. Support 'auto' in fo:external-grapic@height, -@width, -@content-height and -@content-width