Fix Thumbnail mapper and properly handle native JavaCV dependencies