use the html5 file api to upload images