Add download thumbnail file function.