5/9/14 - changed calcMainColor with UniDimensionCOntrast