4/16/14 - changed some of contrast.cpp