Exposing thumbnails satisfyingly

Now the dialog is not freezed until thumbnails are exposed.
Neither is it infinitely redrawing it or exposing thumbnails
before the mipmaps are set. All in all, it's working good :)