Sublayer exporting

- Fixed exporting sublayer images
- Nesting is now part of states rather than the PSD