Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.626
diff -u -p -r1.626 theme.inc
--- includes/theme.inc	11 Dec 2010 02:06:25 -0000	1.626
+++ includes/theme.inc	15 Dec 2010 15:26:12 -0000
@@ -1504,15 +1504,15 @@ function theme_links($variables) {
  *   - attributes: Associative array of attributes to be placed in the img tag.
  */
 function theme_image($variables) {
-  $attributes = $variables['attributes'];
-  $attributes['src'] = file_create_url($variables['path']);
+  $attributes = array('src' => file_create_url($variables['path']));
 
-  foreach (array('width', 'height', 'alt', 'title') as $key) {
+  foreach (array('alt', 'title', 'width', 'height') as $key) {
 
     if (isset($variables[$key])) {
       $attributes[$key] = $variables[$key];
     }
   }
+  $attributes += $variables['attributes'];
 
   return '<img' . drupal_attributes($attributes) . ' />';
 }
