Index: xhtml2fo.xsl
===================================================================
--- xhtml2fo.xsl	(revision 18239)
+++ xhtml2fo.xsl	(working copy)
@@ -1828,14 +1828,14 @@
                 </xsl:when>
             </xsl:choose>
         </xsl:variable>
-        <!-- If both height and width are specified, allow the image to be transformed to a different aspect ration -->
-        <xsl:if test="$has-height and $has-width"><xsl:attribute name="scaling">non-uniform</xsl:attribute></xsl:if>
+        <!-- If both height and width are specified, allow the image to be transformed to a different aspect ratio
+        <xsl:if test="$has-height and $has-width"><xsl:attribute name="scaling">non-uniform</xsl:attribute></xsl:if> -->
         <!-- The img attribute set contains values that scale images to 75%, in order to transform from 72 to 96 DPI;
-             since the user specifies his own width and/or height, let the image scale to fit the specified values -->
-       <xsl:if test="$has-height or $has-width">
-            <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
-            <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
-        </xsl:if>
+              since the user specifies his own width and/or height, let the image scale to fit the specified values -->
+        <xsl:attribute name="content-height">scale-down-to-fit</xsl:attribute>
+        <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
+        <xsl:attribute name="width">100%</xsl:attribute>
+        <xsl:attribute name="height">100%</xsl:attribute>
         <xsl:attribute name="src">
             <xsl:text>url('</xsl:text>
             <xsl:value-of select="@src"/>
@@ -1859,7 +1859,9 @@
                     </xsl:otherwise>
                 </xsl:choose>
             </xsl:variable>
-            <xsl:attribute name="width"><xsl:value-of select="$width-no-unit"/><xsl:value-of select="$unit"/></xsl:attribute>
+            <xsl:if test="$width-no-unit &lt; 450">
+             <xsl:attribute name="width"><xsl:value-of select="$width-no-unit"/><xsl:value-of select="$unit"/></xsl:attribute>
+            </xsl:if>
         </xsl:if>
         <xsl:if test="$has-height">
             <xsl:variable name="unit"><xsl:value-of select="translate($height, '01234567890. ', '')"/></xsl:variable>
