So somewhere over here we can do something like

```ruby
@image_path = {}
if site.config["emoji-image-path"]
  image_dir = site.config["emoji-image-path"]
  Dir.foreach(image_dir) do |path|
    if /^(?<tag>.*)\.(?:png|jpg|jpeg|gif)/ =~ path
      @master_whitelist << tag
      @image_path[tag] = File.join(image_dir, tag)
    end
  end
end
@master_whitelist.sort!
```

Then over at `img_tag`,

```ruby
if @image_path[name]
  ".....src='#{@image_path[name]}#"
else
  ...
end
```