Refine file uploads
Fix avatar preview