I don't use Google but as far as I can tell the behavior is very similar on both sites. (right click -> open image in new tab) on Google links directly to the image like DDG, though some are links to a data URL or cached versions of removed images on encrypted-tbn0.gstatic.com
I took a look at the sqlite db but I didn't see anything that stood out but I might be looking at the wrong file. Is it databases.db? You can get that tab-complete behavior with custom search engines though
Keyword: l, URL: localhost:%s
Then it works how you're describing with l<tab> and input the port. I personally define all the different versions of my servers that way so v1<enter> goes to something like internalserver:9001, v2<enter> goes to internalserver:9002, etc.
I've searched for internal servers so many times I've just gotten into the habit of suffixing with '/' so 'internalserver/' goes to http://internalserver/