Fix OOB errors when undoing blank selections that involve image resizing