Cleaned up adaptive bilateral filtering, added support for gaussian
interpolation