Effective mass enhancement and the imaginary part of the optical potential in nuclear matter