create avatar adapter for file upload