Thanks to all for the suggestions. I did them all. I believe BZ may have found the solution, and I would never have suspected this. I had been reading a book on iPhoto and inadvertently did set the background to change every 5 minutes. I thought I had unselected this option but when I checked, that was exactly it.
Thanks to all for your suggestions. I would have spent a day reformatting the hard drive without your help.
Case closed.