fix ios photo timeout