Design of a high-speed rescan confocal microscopy system