changing how colors are handled and rmeoving centroids form image

Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>