An Efficient Method for Enhancing High-Contrast Digital Photos Automatically