While reading the documentation for iff(), I noticed the command line function edit(), which is pretty cool.
UPDATE docs SET body=edit(body) WHERE name='report-15';
UPDATE pics SET img=edit(img,'gimp') WHERE id='pic-1542';