Accessing appdelegate from photobrowser has been replaced by nsnotification