Add a basic UI and the encode-problem of jpeg will be resolved tomorrow, now support two event when click the Button