Ground calibration of the x-ray mirror assembly for the X-Ray Imaging and Spectroscopy Mission (XRISM) II: imaging performance and stray light