Update CaptureMedia.py