As an alternative option: zzuf[0] is meant to be a fuzzer, but its take on that is "randomly change random bytes in a file" (it can be run as a wrapper around a victim process like your image viewer, but it's happy to run on bare files).
[0] http://caca.zoy.org/wiki/zzuf