add png encode function for NativeProcessor