Extract directory traversal code to NSFileManager category
Backup original image if passed corresponding option
Recompile binary