How Does the Hostname get generated in LUCI

Hey there, trying to replace the normal text that comes from your hostname with an image, seems to be generated on the fly by the hostname, if anyone could point out the way that LUCI does this that would be great, Thanks!