Thanks. The first option done the trick and facilitated the tidy up of a whole lot of images. Thanks also for advising on the alternative options.
However this might get me into trouble as this now ventures into PHP!
The line of script is as follows:
$image = imagecreatefromjpeg("background$bgNum.jpg");
I have tried putting the images in a folder called 'album' and amending the script as follows:
$image = imagecreatefromjpeg("./album/background$bgNum.jpg");
It did not work but am I on the right track??