minor fixes
also fixes broken image previews