refactoring: separated duplicate code from img2img and txt2img into a single function
Attach a file by drag & drop or click to upload