Add colorutils.ContrastAndClamp
Optimize diamond pattern