implement flash and gravatar