One way to do it if you have the time, is mount the system .IMG as a loop device under Linux, delete all the system files from a current flashable zip and then copy the new ones over.
Sent from my Nexus 5 using XDA Free mobile app

I don't assume any responsibility for damage caused to your device.