refactored file field into file chooser view (only support for single file upload now) and added an image uploader view