My method for doing this involves writing gibberish into or deleting content from a jpeg opened in HexFiend
http://ridiculousfish.com/hexfiend/
It's very trial and error, but the results can be fun when you screenshot each progressive glitch and then gif them together to get stuff like this:
http://24.media.tumblr.com/4d77ff1ee75c119a03cac1eb90952505/...
Neat that someone automated the process, though.