Patch by nix-nix: Factor out getPixmapForEntry for easier override with custom pixmaps