Fix a bug where the avatar field was always treated as required
Fix a warning when no avatar_filename was set
Merge pull request #36 from tobz-nz/develop

Fix some bugs in avatar support.