Photographer settles 'monkey selfie' legal fight