Agent-Based Image Contrast Enhancement Algorithm