Can't you use the system screensaver? You can easily use the iPhoto library to
create one. If you need a more complex screensaver, then you can
program one yourself using Apple developer tools (look also for Quartz Composer). You should be able to find a few examples.
If that doesn't help then go to macupdate.com or versiontracker.com and search for screensaver.