Fix crash when showing outlines for multiple images