Added avatars to users, and improved the way that mimetypes are determined