I think there can be good reasons to choose mature library that solves complex problem (even if you don't understand the code) instead of writing your own code.
I find writing a simple wrapper around big libraries a good practice, it should limit the external library features to what you really need, give you more control on how it's used and allow to switch to other library or even write your own code with much less effort.