Adds support for custom thumbnail directory. Improves SVG thumbnail support.