When you wish to hide the dock, this Python script adds a dark dock to each background image.
Thanks to iTech Expert for helping me with the transparent dock image.
To run this script, you need Python and the Pillow library. If you haven't installed Pillow yet, you can install it with the following command:
pip install pillow