Mr Thompson said: “He took the photographs as bravado to make himself seem more important in front of his peers.

“It is incredibly naive for a sophisticated drug dealer to have these sort of photographs on his phone.”

Matthew Lawson, prosecuting, said: “It is an overwhelming case. The photographs are such that the defendant would have had difficulty in disassociating himself with the drugs.”

The court was told Hagos had been found with 23 wraps of crack cocaine, with a street value of £920, 11 wraps of heroin, worth £440, a knuckle-duster and £500 in cash. The court also heard that he had previous convictions for cannabis possession and assault.

Hagos, of Abbey Wood, south London, pleaded guilty to two counts of possessing a class A drug with intent to supply following his arrest last October in a flat in Southsea, Hants. He was jailed for three-and-a half years.

Judge Richard Price told him: “You came down from London with class A drugs, crack cocaine and heroin to sell.

“I am satisfied that is the sole purpose of your visit to this city.”

He added: “You are more than a street dealer, you are a supplier to those who sell on the streets.”