Added support for SelectFolder and refactored to SelectImage from ImagePreview