First not-working implementation of bilateral filter