Fixes crash on edding new event from iPhoto
Fixes logic for duplicated images