Add optional zs parameter to transform, see #199

Sync API to df2ff9083c8fcad812ae81ea35a1ce1adb5fa273