--- a/picture.module	2013-03-12 18:47:48.000000000 +0000
+++ b/picture.module	2013-03-12 18:56:30.000000000 +0000
@@ -1126,7 +1126,7 @@ function picture_page_build(&$page) {
 function picture_image_uri($src) {
   $uri = '';
   // Prepare the src by removing http:// or https://.
-  $src = preg_replace('/https?:\/\//', '', $src);
+  $src = parse_url($src, PHP_URL_PATH);
   // Remove leading or trailing slashes.
   $src = trim($src, '/');
 
