support uploading image from taking photo
adjust debug info