VID-1915 Fix XSS vulnerability

Alt is already captured and escaped in the method that returns $imgAttribs