playerhead is a Python script which generates image files from Minecraft player heads. It was written for Wurstmineberg and may require some tweaking to run on your server.
wurstmineberg/playerhead
Python script which generates image files from Minecraft player heads
PythonMIT