diff --git a/modules/image/image.api.php b/modules/image/image.api.php
index 8115116..2cc469c 100644
--- a/modules/image/image.api.php
+++ b/modules/image/image.api.php
@@ -195,6 +195,22 @@ function hook_image_default_styles() {
   return $styles;
 }
 
+/**
+ * Respond to image path flushing.
+ *
+ * This hook enables modules to take effect when all cached versions of a
+ * specific image path are being flushed.
+ *
+ * @param $path
+ *   The path of the image.
+ */
+function hook_image_path_flush($path) {
+  // Delete all info about certain file paths.
+  db_delete('mytable')
+    ->condition('path', $path)
+    ->execute();
+}
+
  /**
   * @} End of "addtogroup hooks".
   */
diff --git a/modules/image/image.module b/modules/image/image.module
index fac8de9..b0df838 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -553,6 +553,8 @@ function image_path_flush($path) {
       file_unmanaged_delete($image_path);
     }
   }
+
+  module_invoke_all('image_path_flush', $path);
 }
 
 /**
