Updating JImage to latest platform version

This PR integrates joomla/joomla-platform#1751 into the CMS image lib.