On analytic functions with positive imaginary parts