added $px, $py, $rad, $amp definition in _distorted_copy()