honestly with xaiomi devices i find it just easier to fastboot flash <partition> filename.img ....its a pain but at the end of the day its just easier ...so on your pixel it would prob be easier to do the same ...also it sounds like your android-tools install is either old version or borked