Hi,

try out http://wolfgang.remsnet.de/replimage.php
This is pure script (and I might have a perl version too), so maybe you could turn that into a cmdline tool

Musicman