Text this: Photoelectric Pattern of Afterpulses Generation in Avalanche Photodetectors