Added Log messages inside the image and video capture functions.