fixed avatar upload on device