You could use Digest::MD5::md5_base64() to encode the student answer when appending it to the image name, but in order to make this work, you would need to add Digest to the ${pg}{modules} list in global.conf as a second name in one of the already present modules, say the WWPlot module.
Davide
WeBWorK Main Forum
chown errors
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day