After a fair amount of trial-and-error hand editing I devised a simple Ruby script to auto-glitch.
https://gist.github.com/Neurogami/6208325
Later I combined this with another script to gather up the generated images and create an animated GIF.
An example: https://plus.google.com/107781042718674753240/posts/icwnoyHY...