added whiteSquare mode for Spectrum class