add preview to image type files