Deobfuscate more metadata code
Deobfuscate and simplify image layout code