Correcting indentation
Using convolve in _get_filtered_image for mode=Octagon