change palette png to data uri format