Minor style cleanup, and also replaced manual checker drawing by a call to `imm_draw_checker_box`. Part of T49043