diff --git a/src/Plugin/Block/InstagramWithoutApi.php b/src/Plugin/Block/InstagramWithoutApi.php
index 248bcc1..8e517f4 100644
--- a/src/Plugin/Block/InstagramWithoutApi.php
+++ b/src/Plugin/Block/InstagramWithoutApi.php
@@ -171,7 +171,7 @@ class InstagramWithoutApi extends BlockBase {
 
           // Save image for template file.
           $data[] = array(
-            'image' => file_create_url($new_image),
+            'image' => \Drupal::service('file_url_generator')->generateAbsoluteString($new_image),
             'path' => 'https://www.instagram.com/p/' . $shortcode,
           );
         }
