LPS-46966 Update <img> Attribute - Document Library Portlet

Hey @jonmak08, here is an update for https://issues.liferay.com/browse/LPS-46966