diff --git a/instagram-block-image.tpl.php b/instagram-block-image.tpl.php
index 4ebd2b6..38fb847 100644
--- a/instagram-block-image.tpl.php
+++ b/instagram-block-image.tpl.php
@@ -12,5 +12,5 @@
  */
 ?>
 <a class="group" target="blank_" rel="group1" href="<?php print $href ?>">
-  <img style="float: left; margin: 0 5px 5px 0px; width: <?php print $width ?>px; height: <?php print $height ?>px;" src=" <?php print $src ?>">
+  <img style="float: left; margin: 0 5px 5px 0px; width: <?php print $width ?>px; height: <?php print $height ?>px;" src="<?php print $src ?>">
 </a>
diff --git a/instagram_block.module b/instagram_block.module
index c172db1..2d00017 100644
--- a/instagram_block.module
+++ b/instagram_block.module
@@ -130,12 +130,15 @@ function instagram_block_block_view($delta = '') {
       $response = $request->get_instagram_posts();
 
       foreach ($response as $post) {
+        $url = $post->images->{$img_resolution}->url;
+        $components = parse_url($url);
+
         $content['children'][] = array(
           '#markup' => '',
           '#theme' => 'instagram_block_image',
           '#post' => $post,
           '#href' => $post->link,
-          '#src' => $post->images->{$img_resolution}->url,
+          '#src' => str_replace($components['scheme'], '//', $url),
           '#width' => $values['width'],
           '#height' => $values['height'],
         );
