Bug fixes related to the avatar method in the User model and the ImageUploader class