filterImage3d function

Apply filter to 3D images