Revert "modify color extraction"

This reverts commit b85088abadcece28392df3fad4bccb4810994392.