49ers QB photographed wearing the hat at a July 4th party.