You could call Apple with the model and serial number of this computer and they will provide original discs for a $17.95 replacement price; which is not a bad idea, if you ever hope to resell it someday, or donate it, as I did to my niece and nephew!
However the replacement discs are probably Panther and not Leopard. Since you are already at 10.5.8, not having a Leopard disc is not much of a disadvantage anyway, unless it crashes.
Wiping its hard drive (AFTER you back it up completely) and restoring Leopard and its files might show some improvement in speed, but you do not have a Leopard disc to restore. Apple no longer sells them and purchasing them on eBay is financially disadvantageous. There are other sources for acquiring Leopard on the internet but...
One thought might be disc defragmentation. After time, files get fragmented all over your hard drive, slowing it down.
You would have to find a defrag program that worked in the Leopard days. These programs are best run from an external drive so that 100% of your Mac hard drive is available for defrag'in.
I used to use iDefrag. You can contact them and see if they still sell a version for Leopard:
http://www.coriolis-systems.com/iDefrag.php
Is your use of Lightroom and Photoshop for commercial purposes or only hobby? What versions of Lightroom and Photoshop are you using?
Take a look at the new Mac Mini for $599 and runs Mountain Lion:
http://store.apple.com/us/browse/home/shop_mac/family/mac_mini
I would recommend a third party RAM upgrade, say from OWC:
http://eshop.macsales.com/shop/mac-mini/
And of course you would need to purchase a Display: I use the 22" Samsung and I never miss my iMac G5 anymore!
However, this raises a software upgrade issue, which for Photoshop can be costly.
If you are happy with the current versions of Lightroom and Photoshop, I would still recommend that you put most of your money into hardware and save up for later software upgrades.
The way to accomplish this is to install Snow Leopard Server into Parallels 8 on your new Mac Mini; which will provide the needed PowerPC emulator Rosetta, which your applications will require:
![User uploaded file](https://discussions.apple.com/content/attachment/229375040)
[click on image to enlarge]
Snow Leopard Server is now available from the Apple Store for $19.99 + sales tax & shipping: 1.800.MYAPPLE (1.800.692.7753). Apple Part Number: MC588Z/A (telephone sales only)
Parallels 8 is now available for a 40% discount for 3 more days with the $49.99 March 2013 MacUpdate 10 apps bundle:
https://deals.macupdate.com
Adobe now offers a freely downloadable version of Creative Suite 2 (CS2), which being PowerPC applications, can only run as I have shown in SLS in Parallels:
http://www.adobe.com/downloads/cs2_downloads/index.html