Nested layers fix. Style fixes
Made template logic-less
+ Jade nested templates. OPT: img/div
Fixed: trimmed canvas doesn't use nested layers
Fixed: nested layers wouldn't be deleted correctly