I made one a while ago, there was a thread about it but I can't find it (maybe it's gone). You can download it from here:
http://360software.dakotabcn.net/dynimg/makeimg_src.zip
There was another script in some page but I don't remember its URL. I'll try to find it when I get home (or use Google yourself
![:P](images/smilies/msn_tongue.gif)
).