imagefit "Fixed Width" equivalent Editor X

Do you want the width to be fixed and the height to change?
So first of all on the right side bar set the width to certain value and the height to “Auto”. then in you code assign ‘fixedWidth’ to the image.fitMode