generalized vignetting script