readjust the texture color picking code

prepare for not-palettized texture.