this is one of tons of V@no's little tweaks he does on his site...
and I guess he did not publish that (yet?
).
I guess that won't be so hard to do, because that function already exists for categories in 4images (just disabled by default) so you just have to find and take that snippet of code and rewrite it to fit your needs...