Fix regression in thumbnail icon handling.

The preview icon and the main icon shouldn't get mixed up...