Modify some logic to display picture realtime friendly. and add progress bar for upload.