Fix crash in ImageBox#cancel_draw.