code which takes diffraction patterns from ePIE, crops image to RIO, and fits noise to a function and corrects for it