Provide empty presetting of $GLOBALS[TL_CONFIG][avatar_dir] for Contao 3.1.
Format code.
Make insert tag configurable via query parameters {{avatar[::id][?width=X&height=Y&mode=M&alt=ALT&class=CLASS]}}.
Remove unused variable $db.
Optional resize uploaded images.
Add configuration settings avatar_default_alt, avatar_anonymous_alt, avatar_default_title, avatar_anonymous_title, avatar_default_class and avatar_anonymous_class.
Rework the class InsertTag.
Do code fixes.
Merge pull request #3 from tristanlins/master

Multiple improvements