Added saving of images to distortion module.