Much of the gas flared off in oil & gas production is not hydrocarbons: It's a mix of hydrogen sulphide, sulphur dioxide and (surprise! CO2), which you really don't want in your car. Or your pipeline.
The flaring of hydrocarbon gases still does happen, often to burn off the H2S. Yes, it is a waste. In general though, where the gas is economically worth saving, it will be. Energy companies would rather sell gas than flare it. Big improvements have been made in this department over the years. Natural gas often powers the platforms which produce oil. Some of the gas is reinjected to the reservoir to maintain pressure. Flares are also emergency safety valves.
I'm curious- how old is the photo, and what is it actually showing? It looks to me like false colour IR, but it is titled "light pollution"
Gas and oil production platforms (There are few actual "drilling rigs" in the north sea nowadays.) do have a lot of electric lights and generators, which will show up on IR along with flares.