Implemented, tested and activated function for retrieving user avatar.
User avatar is now saved with filename.