functioning avatar uploader for user profile