@staticmethod
def _convolve_image(image, kernel, fast=True):
    """Convolve the image with the provided kernel."""
    if fast:
        from astropy.convolution import convolve_fft
        return convolve_fft(image, kernel)
    from astropy.convolution import convolve
    return convolve(image, kernel)
