Repository: stable-diffusion-webui
Issue: [Bug]: Add number to filename when saving option still adds -0000 to batch upscaled images from folder
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I have the option [Add number to filename when saving] unticked so I expect the output upscaled image to have the exact same filename as it's original.

When using Extras -> Batch From Directory it still seems to include "-0000.png" at the end of the original filename.

### Steps to reproduce the problem

1. Disable the setting "Add number to filename when saving".
2. Upscale any image(s) using the batch from directory making sure to use a different input and output directory.
3. I was using R-ESRGAN 4x+ if it matters.

### What should have happened?

Upscaled image filename should be identical to the original filename without any additional numbers added.

### Commit where the problem happens

dfeee786

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--theme dark
```


### List of extensions

No

### Console logs

```Shell
venv "C:\Users\stuar\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: dfeee786f903e392dbef1519c7c246b9856ebab3
Installing requirements for Web UI

Launching Web UI with arguments: --theme dark
No module 'xformers'. Proceeding without it.
Loading weights [02e37aad9f] from C:\Users\stuar\stable-diffusion-webui\models\Stable-diffusion\openjourney-v4.ckpt
Creating model from config: C:\Users\stuar\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: C:\Users\stuar\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 4.3s (load weights from disk: 0.7s, create model: 0.4s, apply weights to model: 0.6s, apply half(): 0.8s, load VAE: 0.2s, move model to device: 0.7s, load textual inversion embeddings: 1.0s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 13.2s (import gradio: 2.5s, import ldm: 1.0s, other imports: 1.8s, list extensions: 0.4s, load scripts: 1.6s, load SD checkpoint: 4.5s, create ui: 1.3s).
        Tile 1/36
        Tile 2/36
        Tile 3/36
        Tile 4/36
        Tile 5/36
        Tile 6/36
        Tile 7/36
        Tile 8/36
        Tile 9/36
        Tile 10/36
        Tile 11/36
        Tile 12/36
        Tile 13/36
        Tile 14/36
        Tile 15/36
        Tile 16/36
        Tile 17/36
        Tile 18/36
        Tile 19/36
        Tile 20/36
        Tile 21/36
        Tile 22/36
        Tile 23/36
        Tile 24/36
        Tile 25/36
        Tile 26/36
        Tile 27/36
        Tile 28/36
        Tile 29/36
        Tile 30/36
        Tile 31/36
        Tile 32/36
        Tile 33/36
        Tile 34/36
        Tile 35/36
        Tile 36/36
```


### Additional information

_No response_