Extended html5.js so that image can be displayed in browser prior to upload