take image from the camera