Text this: Image defogging algorithm based on guided filtering and adaptive tolerance