Remove the possibility to use PIL.
Some refactoring and optimizations for the PathsDb class.