LPS-40389 Fix web content image resize problem

https://issues.liferay.com/browse/LPS-40389