Reference Histogram Matching Based on Moving Averaged Brightness Histogram