added user model and avatar image capability for gallery