def _diff_image(slice1, slice2,
                abs_value=True,
                cmap='gray',
                **kwargs):
    """Computes the difference image"""

    diff = slice1 - slice2

    if abs_value:
        diff = np.abs(diff)

    return diff, cmap
Computes the difference image