A man who was caught on camera dealing drugs at a Wigan park has been jailed for five years.