1. A method of processing an image, the method comprising: receiving, by a processor, a distorted image captured with a lens that generates distortion in the image; generating, with the processor, a corrected image by applying a distortion correction algorithm to correct for distortion in the distorted image; storing values for the distorted image and the corrected image in a data structure stored in a computer-readable medium operatively coupled to the processor; and thereafter, generating, with the processor, a re-distorted image using values stored in the data structure to re-distort the corrected image.