add parameters: color,encoding