Fix thumbnailing on OS X and Windows.