Optical and digital image processing in high-resolution electron microscopy