[api2] Improve api for user avatar and add for group avatar