Fix spatial mode crash and shift+double click

Fixes issues:
https://github.com/mate-desktop/mate-file-manager/issues/120
https://github.com/mate-desktop/mate-file-manager/issues/161
fixed thumbnail frame not being displayed for some files. also fixes #135.