Adding `$` to `img`. Fixes #3311.
Second instance of same error
Setting "src" attribute correctly
Merge pull request #3312 from Bakual/FixImagePreview

[#33484] Image preview mouseover throws "Uncaught ReferenceError: img is not defined"