The included php script is my first attempt to give back to this Moodle community. It works for me, but no guarantees it will work for you.
Basically, it is a takeoff of the script in the userpix directory (index.php)
However, this one is enhanced. What it will do is parse out pictures of your students BY GROUP. Additionally, it will size the pictures up to 200 pixels and print the names of each student under each picture.
I called it "album.php" because it is most useful to create a class album, or a picture book. I teach 12 classes, and wanted to put together a picture book that would break out the classes separately. It is fantastic to help students get to know each other.
Of course, you would have to have arranged your classes by groups in order to use this. But it returns the pictures of each student, with their name printed below each picture. Place it in the userpix directory in your moodle. Usage is as follows:
http://[site url]/[moodle directory]/userpix/album.php?group=[group name]&size=[size in pixels]
Many thanks go to a friend of mine who is a coding genius. I didn't do the coding myself, so if anyone wants to improve this, feel free. Just please share your results with us all.