Text this: Image processing and computer-aided design in electron optics