Another interesting example of people embracing the pirate image was British submarines in WW1. The First Sea Lord of the day saw them as ungentlemanly and called for all German submarine crews to be hanged as pirates, this outburst birthed the tradition that a British submarine returning home after successfully sinking an enemy vessel flies the jolly roger! The last time this occurred was after the 1982 Falklands War, I believe HMS Conqueror to this day remains the only nuclear submarine to have engaged an enemy ship with torpedos.