LPS-46968 Update <img> Attribute - Directory Portlet

Hey @jonmak08 here's an updated for https://issues.liferay.com/browse/LPS-46968, thanks!