Bilateral filtering for gray and color images