sandbox script for correction of the perspective distortion