Fix some indent-formatting. Tab = 8 chars
Bugfix: gm and auto-orient thumbnailing