Fix segfaults in buffers
Add bilateral filtering