add gravatar class, wrap embedded media