Fixed thumbnail problem with multiple files