Add support for external-graphic's scaling attribute
Drop non-JPEG workaround