Of course, most of these high energy electrons are knocked out of the camera sensor, which is essentially a flat slab of silicon just a few micrometres thick.
However, the electron's trajectory will take it through the slab from one pixel to the next and this generates a line of pixels that are relatively easy to spot.