Image Filtering and Relaxation Procedures using Hierarchical Models