[[ Bug 13553 ]] Ensure ImageLoader deals with name as StringRef correctly
Merge pull request #1223 from runrevali/bugfix-13553.md

[[ Bug 13553 ]] Make ImageLoader deal with name as StringRef correctly