Index: feed_handlers/RSS20.inc
===================================================================
--- feed_handlers/RSS20.inc
+++ feed_handlers/RSS20.inc
@@ -91,8 +91,17 @@
 			$other['original_comments'] = "{$news->comments}";
 
 		$image = array();
-		if ($news->enclosure) {
-			if (preg_match('/^image/', $news->enclosure['type'])) {
+		if ($news->enclosure) {		    
+			if($news->enclosure instanceof SimpleXMLElement) {
+			  $enclosure = $news->enclosure;
+			  $attributes = array();
+			  foreach ($enclosure->attributes() as $key=>$value)
+			    $attributes[(string)$key] = (string)$value;
+			  if (preg_match('/^image/', $attributes['type'])) {
+				$image[] = array('url' => $attributes['url']);
+			  }
+			}
+			elseif (preg_match('/^image/', $news->enclosure['type'])) {
 				$image[] = array('url' => "{$news->enclosure['url']}");
 			}
 		}
Index: aggregation.module
===================================================================
--- aggregation.module
+++ aggregation.module
@@ -1540,6 +1540,12 @@
 {
 	// check that image module is up and running!
 	if (!function_exists('_image_filename')) return 0;
+	
+	// Determine path to uploaded images.
+	static $path_to_uploaded_images;
+	if(empty($path_to_uploaded_images)) {
+	  $path_to_uploaded_images = file_directory_path().'/'.variable_get('image_default_path', 'images').'/temp/';
+	}
 
 	// if there's no URL, return 0
 	if (!$image_array['url']) return 0;
@@ -1593,7 +1599,7 @@
 
 	$image_object->promote = 0;
 
-	$image_object->images[IMAGE_ORIGINAL] = file_directory_path().'/images/temp/'. $filename;
+	$image_object->images[IMAGE_ORIGINAL] = $path_to_uploaded_images.$filename;
 
 	$image_object->images = _image_build_derivatives($image_object, FALSE);
 
