copied distortion filter from docs