Tag image to indexed color palette