fix #1325 image preview in dashboard