File preview improvements