Are pictures lost forever if using TWRP to wipe data?
There is no way to recover files from factory reset. The userdata partition is encrypted and the encryption key is wiped. also new key is generated, makes it nearly impossible to recover the old key
Do not unlock bootloader it will perform factory reset. look for exploit root method on locked bootloader (android &lt; 6.0 only)