diff --git includes/theme.inc includes/theme.inc
index 4437165..ee13be5 100644
--- includes/theme.inc
+++ includes/theme.inc
@@ -1481,11 +1481,12 @@ function theme_links($links, $attributes = array('class' => array('links')), $he
  *   A string containing the image tag.
  */
 function theme_image($path, $alt = '', $title = '', $attributes = array(), $getsize = TRUE) {
-  if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) {
-    $attributes = drupal_attributes($attributes);
-    $url = file_create_url($path);
-    return '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . (isset($image_attributes) ? $image_attributes : '') . $attributes . ' />';
+  $url = file_create_url($path);
+  if ($getsize) {
+    list($width, $height, $type, $image_attributes) = @getimagesize($url);
   }
+  $attributes = drupal_attributes($attributes);
+  return '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . (isset($image_attributes) ? $image_attributes : '') . $attributes . ' />';
 }
 
 /**
