add option to let user specify what file types are previewable