Automatic color leveling for HTML images