Index: wp-admin/custom-header.php
===================================================================
--- wp-admin/custom-header.php	(revision 21203)
+++ wp-admin/custom-header.php	(working copy)
@@ -510,8 +510,13 @@
 	<?php if ( $this->admin_image_div_callback ) {
 	  call_user_func( $this->admin_image_div_callback );
 	} else {
+		$header_image_style = 'background-image:url(' . esc_url( get_header_image() ) . ');';
+		if ( get_custom_header()->width )
+			$header_image_style .= 'max-width:' . get_custom_header()->width . 'px;';
+		if ( get_custom_header()->height )
+			$header_image_style .= 'height:' . get_custom_header()->height . 'px;';
 	?>
-	<div id="headimg" style="background-image:url(<?php esc_url ( header_image() ) ?>);max-width:<?php echo get_custom_header()->width; ?>px;height:<?php echo get_custom_header()->height; ?>px;">
+	<div id="headimg" style="<?php echo $header_image_style; ?>">
 		<?php
 		if ( display_header_text() )
 			$style = ' style="color:#' . get_header_textcolor() . ';"';
