Install dependencies for thumbnail generations in Travis.