diff --git a/src/Plugin/Field/FieldFormatter/ImageBase64Formatter.php b/src/Plugin/Field/FieldFormatter/ImageBase64Formatter.php
index 711af0a..87ffda4 100644
--- a/src/Plugin/Field/FieldFormatter/ImageBase64Formatter.php
+++ b/src/Plugin/Field/FieldFormatter/ImageBase64Formatter.php
@@ -6,6 +6,7 @@ use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Entity\EntityStorageInterface;
 use Drupal\Core\Field\FieldDefinitionInterface;
 use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\File\FileUrlGeneratorInterface;
 use Drupal\Core\Image\ImageFactory;
 use Drupal\Core\File\FileSystem;
 use Drupal\Core\Link;
@@ -60,8 +61,8 @@ class ImageBase64Formatter extends ImageFormatter {
   /**
    * {@inheritdoc}
    */
-  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, AccountInterface $current_user, EntityStorageInterface $image_style_storage, ImageFactory $image_factory, FileSystem $fileSystem) {
-    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $current_user, $image_style_storage);
+  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, AccountInterface $current_user, EntityStorageInterface $image_style_storage, FileUrlGeneratorInterface $file_url_generator, ImageFactory $image_factory, FileSystem $fileSystem) {
+    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $current_user, $image_style_storage, $file_url_generator);
     $this->imageFactory = $image_factory;
     $this->fileSystem = $fileSystem;
   }
@@ -80,6 +81,7 @@ class ImageBase64Formatter extends ImageFormatter {
       $configuration['third_party_settings'],
       $container->get('current_user'),
       $container->get('entity_type.manager')->getStorage('image_style'),
+      $container->get('file_url_generator'),
       $container->get('image.factory'),
       $container->get('file_system')
     );
