Bug fixing: Avatar file need to be checked before we insert any "img" tag