Optimizing color photos for the web