add avatar argument to API of notify. #289