refactor. add imgur file upload sample