change avatar upload logic to work with skipper