removal of photo in json not working