But do you actually go straight away to twrp recovery using the command-
fastboot flash recovery twrp.img
followed by-
fastboot boot twrp.img
If you don't, it can get overwritten. If you are using fastboot as above, then there may be an issue with your .img file. Do you get any messages back from your fastboot commands in the DOS prompt window?