I'd add a comment saying what the mapping is.  Is this filename to ThumbnailItem?

Also, feel free to use the new ES6 Map object if you ever want it. It allows you to use non-strings as the mapping keys.