Cosmetic

- Change the indent size
properties: More error checks

- no more crash on document with no preview image