A colourful picture of a Chinook helicopter has become an unofficial symbol for a town that avoided catastrophic flooding.