We describe a method to speed up microelectromechanical system (MEMS) mirror scanning by > 20x, while also improving scan accuracy. We use Landweber deconvolution to determine an input voltage which would produce a desired output, based on the measured MEMS impulse response. Since the MEMS is weakly nonlinear, the observed behavior deviates from expectations, and we iteratively improve our input to minimize this deviation. This allows customizable MEMS angle vs. time with <1% deviation from the desired scan pattern. We demonstrate our technique by optimizing a point scanning microscope's raster patterns to image mammal submandibular gland and pollen at ~10 frames/s.