diff --git a/index.html b/index.html
index 4a9f5eb..8e8192b 100644
--- a/index.html
+++ b/index.html
@@ -373,7 +373,7 @@
src="js/ui/tool/generic.js?v=9f1f84e"
type="text/javascript">
-
+
diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js
index 7e98d3a..b374824 100644
--- a/js/ui/tool/dream.js
+++ b/js/ui/tool/dream.js
@@ -775,6 +775,20 @@ const _generate = async (endpoint, request, bb, options = {}) => {
});
imageSelectMenu.appendChild(resourcebtn);
+ const deletebtn = document.createElement("button");
+ deletebtn.textContent = "D";
+ deletebtn.title = "Delete Image";
+ deletebtn.addEventListener("click", async () => {
+ images.splice(at, 1);
+ seeds.splice(at, 1);
+
+ at = Math.min(at, images.length - 1);
+
+ imageindextxt.textContent = `${at}/${images.length - 1}`;
+ redraw();
+ });
+ imageSelectMenu.appendChild(deletebtn);
+
const savebtn = document.createElement("button");
savebtn.textContent = "S";
savebtn.title = "Download image to computer";