Contrast enhancement using multipeak histogram equalization with brightness preserving