Bayesian Correction of Image Luminance with Spatial Consideration