[LPS-37920][LPS-37433] Fix for Incorrect scanline stride PNG issue

http://issues.liferay.com/browse/LPS-37433