Index: wp-includes/media.php
===================================================================
--- wp-includes/media.php	(revision 23465)
+++ wp-includes/media.php	(working copy)
@@ -508,8 +508,13 @@
 function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) {
 
 	// get a thumbnail or intermediate image if there is one
-	if ( $image = image_downsize($attachment_id, $size) )
+	if ( $image = image_downsize( $attachment_id , $size ) ) {
+		if( is_admin() )
+			$image = set_url_scheme( $image , 'admin' );
+		else
+			$image = set_url_scheme( $image ); 
 		return $image;
+	}
 
 	$src = false;
 
@@ -518,8 +523,13 @@
 		$src_file = $icon_dir . '/' . wp_basename($src);
 		@list($width, $height) = getimagesize($src_file);
 	}
-	if ( $src && $width && $height )
+	if ( $src && $width && $height ) {
+		if( is_admin() )
+			$src = set_url_scheme( $src , 'admin' );
+		else
+			$src = set_url_scheme( $src );
 		return array( $src, $width, $height );
+	}
 	return false;
 }
 
