extracted thumbnailer to its own library
updated to use new Thumbnailer API