added functionality to select different PSF functions