diff --git a/src/Plugin/Block/ImageEditorOverlay.php b/src/Plugin/Block/ImageEditorOverlay.php
index 232a46f..9f300c3 100644
--- a/src/Plugin/Block/ImageEditorOverlay.php
+++ b/src/Plugin/Block/ImageEditorOverlay.php
@@ -38,7 +38,7 @@ class ImageEditorOverlay extends BlockBase {
         '#type' => 'item',
         '#markup' => file_get_contents(
           \Drupal::root()  . DIRECTORY_SEPARATOR .
-          drupal_get_path('module', 'image_edit') .
+          \Drupal::service('extension.list.module')->getPath('image_edit') .
           DIRECTORY_SEPARATOR . 'popup_template.html'
         ),
         '#attached' => ['library' => ['image_edit/editor_code']],
