Updated to handle removal of pins to delete photos