Refactor: html5 upload of previews