Added a function punch_hole which creates inverted frames for use in signal to noise ratio calculation