LPS-46968 Update <img> Attribute - Directory Portlet

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