Add avatar edit privilege option, move inline JS, check if attachment exists in has_wp_user_avatar, update translations.