Refactored from ImagePreview to SelectImage and add support for SelectFolder form control