added png encoder