fixed the video UI and image capture